Checks file system quota consistency.
quotacheck [ -g ] [ -u ] [ -v ] { -a | Filesystem ... }
The quotacheck command examines a file system specified by the FileSystem parameter, builds a table of current disk usage, and compares the information in the table to that recorded in the file system's disk quota file. If any inconsistencies are detected, the quota files are updated. If an active file system is checked, the current system copy of the incorrect quotas is updated as well. By default, both user and group quotas are checked.
The optional -g flag specifies that only group quotas are checked. The optional -u flag specifies that only user quotas are checked. Specifying both -g and -u flags is equivalent to the default option. The -a flag specifies that all file systems with disk quotas in the /etc/filesystems file are checked.
The quotacheck command usually operates silently. If the -v flag is specified, the quotacheck command reports discrepancies between the calculated and recorded disk quotas.
The quotacheck command expects each file system to contain the quota.user and quota.group files, located at the root of the associated file system. These default file names can be changed in the /etc/filesystems file. If these files do not exist, the quotacheck command creates them.
Access Control: Only a user with root user authority can execute this command.
quotacheck /usr
quotacheck -g /usr
The edquota command, quota command, quotaon and quotaoff commands, repquota command, .
Setting Up the Disk Quota System in AIX 5L Version 5.2 Security Guide.