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:
# 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" |