To show disk quota limits on a FreeBSD system, you can use the quota
command. This command displays the disk usage and limits for a specific user or for all users on the system.
To display the disk usage and limits for a specific user, use the -v
option and specify the username:
quota -v username
To display the disk usage and limits for all users, use the -v
option with the -a
flag:
quota -va
The output of the quota
command will show the current disk usage and limits for each filesystem with quotas enabled. For each filesystem, it will display the following information:
Filesystem
: the name of the filesystemBlocks
: the current number of blocks (units of disk space) used by the user or groupLimit
: the maximum number of blocks the user or group is allowed to useGrace
: the grace period, in days, before the user or group will be unable to write to the filesystem if they exceed their quotaFiles
: the current number of files used by the user or groupLimit
: the maximum number of files the user or group is allowed to createGrace
: the grace period, in days, before the user or group will be unable to create new files if they exceed their quotaHere is an example of the output you might see when running quota -v username
:
/dev/ad0s1g: Blocks Limit Grace Files Limit Grace username 4936 5120 7 3 0 0
This output shows that the user username
is currently using 4936 blocks (units of disk space) on the /dev/ad0s1g
filesystem, and is allowed a maximum of 5120 blocks. The grace period for both blocks and files is 7 days.
If you want to see more detailed information about the quotas on your system, such as the limits for individual groups or the total number of blocks and files used by all users, you can use the -q
option with the quota
command. For example:
quota -q
This will show the quotas for all users and groups on the system.
For more information about the quota
command and its options, you can refer to the quota
man page by running man quota
on the command line.