The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

quotacheck - Create Disk Quotas




The quotacheck command is used to scan mounted partitions in the system and create "[a]quota.user" and "[a]quota.group" files in the root directory of each file system to set disk space quotas for users or groups. This command is effective for ext2, ext3, and ext4 file systems, but not necessary for XFS file systems as they handle quotas differently.

The syntax of the quotacheck command is quotacheck [OPTIONS].

Some commonly used options include:

Examples:
# quotacheck -a ←Scan all file systems.
# quotacheck -g testgroup ←Scan file systems for the specified group "testgroup"
# quotacheck -u testuser ←Scan file systems for the specified user "testuser"

For more explanations, operations, and examples related to quotacheck, you can refer to the provided link.