repquota Command

Purpose

Summarizes quotas for a file system.

Syntax

repquota [ -v ] [ -c ] [ -g ] [ -u ] [ -l ] { -a | FileSystem ... }

Description

The repquota command prints a summary of quotas and disk usage for a file system specified by the FileSystem parameter. If the -a flag is specified instead of a file system, the repquota command prints the summary for all file systems enabled with quotas in the /etc/filesystems file. By default, both user and group quotas are printed.

For each user or group, the repquota command prints:

Flags

Item Description
-a Specifies that quotas are printed for all file systems enabled with quotas in the /etc/filesystems file.
-c Changes the output of the command to a colon-delineated format.
-g Specifies that only group quotas are printed.
-l Enables long user names to be printed on the repquota report. The default behavior of the report will be to truncate the name at 9 characters. If the -l option is specified, the full user name will be used.
-u Specifies that only user quotas are printed.
-v Prints a header line before the summary of quotas for each file system.

Security

Access Control: Only the root user can execute this command.

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

To print a summary of user quotas in the /u file system, enter:

repquota -u /u

The system prints the following information:

                  Block  limits                 File limits
User      used    soft    hard   grace   used   soft  hard  grace
root  --  3920     0       0             734     0     0
davec +-    28     8      30     3 days    3     0     0
keith --    48     0       0               7     0     0

The + printed in the first column next to davec indicates that the user has exceeded established block limits. If there were a + in the second column, it would indicate that the user had exceeded established file limits.

Files

Item Description
quota.user Specifies user quotas.
quota.group Specifies group quotas.
/etc/filesystems Contains file system names and locations.
/etc/group Contains basic group attributes.
/etc/passwd Contains user names and locations.