LinuxCommandLibrary

repquota

Summarize disk quota information for a filesystem

TLDR

Report stats for all quotas in use

$ sudo repquota [[-a|--all]]
copy

Report quota stats for all users, even those who aren't using any of their quota
$ sudo repquota [[-v|--verbose]] [filesystem]
copy

Report on quotas for users only
$ repquota [[-u|--user]] [filesystem]
copy

Report on quotas for groups only
$ sudo repquota [[-g|--group]] [filesystem]
copy

Report on used quota and limits in a human-readable format
$ sudo repquota [[-s|--human-readable]] [filesystem]
copy

Report on all quotas for users and groups in a human-readable format
$ sudo repquota [[-augs|--all --user --group --human-readable]]
copy

SYNOPSIS

repquota [-av] [-u|-g] filesystem...

PARAMETERS

-a
    Report quotas for all filesystems in /etc/mtab that have quotas enabled.

-v
    Verbose mode. Show more detailed information.

-u
    Report quotas for users (default).

-g
    Report quotas for groups.

filesystem...
    Specify the filesystem(s) to report on. If not specified, all filesystems in /etc/mtab with quotas enabled are used (same as -a).

DESCRIPTION

repquota is a command-line utility in Linux used to report disk quota information for a specified filesystem. It displays quota limits, current disk usage, and inode usage for users or groups. It's helpful for system administrators to monitor and enforce disk space usage policies. repquota can generate detailed reports summarizing how much storage users or groups have consumed, what their hard and soft limits are, and the grace periods associated with those limits. This tool is part of the quota management system, allowing administrators to maintain control over disk space allocation on Linux systems.
The command usually retrieves quota data from quota files (e.g., quota.user, quota.group) residing in the root directory of the filesystem. It requires root privileges or appropriate capabilities to function correctly. Output of repquota consists of User/Group id, blocks used, soft limit, hard limit, and grace period and inodes used, soft limit, hard limit and grace period.

CAVEATS

Requires root privileges to execute effectively. The filesystem must have quotas enabled. Output formatting may vary slightly across different Linux distributions. /etc/mtab must be up-to-date for the -a option to work as expected.

FILESYSTEMS SUPPORT

repquota supports various filesystem types with quota capabilities, including ext4, XFS, and others. Ensure the filesystem you are querying has quotas properly configured.

GRACE PERIODS

The grace period dictates how long a user or group can exceed their soft limit before the system starts enforcing the hard limit.

HISTORY

Quota management in Linux originated in the early days of Unix to address the issue of uncontrolled disk space usage. repquota, as part of the quota tools suite, has evolved alongside filesystem developments and changing storage needs. It has been crucial for shared hosting environments, educational institutions, and organizations with large-scale storage systems. Over time, it has received updates to support new filesystems and quota implementations, providing a consistent interface for reporting quota information.

SEE ALSO

quota(1), setquota(8), quotacheck(8), quotaoff(8), quotaon(8), edquota(8)

Copied to clipboard