In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "what is the use of the quotacheck command in Linux", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what is the use of quotacheck command in Linux" this article.
The Linux common command quotacheck command scans a specified file system for disk usage, and creates, checks, and repairs disk quota (quota) files.
Quotacheck checks disk usage space and limitations
Additional instructions execute the quotacheck instruction, scan the partitions attached to the system, generate quota.user and quota.group files under the file system root directory of each partition, and set disk space limits for users and groups.
If the following message appears when you execute the quotacheck command:
Quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown. Consider changing the quota-related field previously added to the file system configuration file to: usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv1, and then remount the file system: mount-vo remount mount directory. (note that if there is any problem with this step, do not try to solve it by rebooting! Restoring the configuration file to its original state is a good choice)
Syntax quotacheck (option) (parameter) option-a: scan the / etc/fstab file with partitions set by quota;-c: perform a new scan of the target file system and create a new quota file;-d: display the instruction execution process in detail to facilitate troubleshooting or understand the program execution;-g: when scanning disk space, calculate the number of directories and files occupied by each group identifier -R: exclude the partition where the root directory is located;-u: when scanning disk space, calculate the number of directories and files occupied by each user identification code;-v: display the instruction execution process. Parameter file system: specifies the file system to scan.
The instance scans all the partition supported by quota in / etc/mtab:
[root@linux ~] # quotacheck-avug quotacheck: Scanning / dev/hdb1 [/ disk2] done quotacheck: Checked 3 directories and 4 files force scanning of mounted filesystem:
[root@linux ~] # quotacheck-avug-m scan the specified filesystem:
[root@linux] # quotacheck-cvug / disk2 is all the content of this article "what is the use of quotacheck commands in Linux?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.