The commands listed below are some that we use often, but many more exist. Check the man page for more details and information.
Quota. Quota displays users' disk usage and limits on a file system. To display user disk usage and limits, use the command:
[root@deep] /# quota -u wahib
Disk quotas for user wahib (uid 501):
Filesystem blocks quota limit grace files quota limit grace
/dev/sda6 6001* 6000 0 none 7 0 0
To display group quotas for the group of which the user is a member, use the command:
[root@deep] /# quota -g wahib
Disk quotas for group wahib (gid 501):
Filesystem blocks quota limit grace files quota limit grace
/dev/sda6 5995* 5000 0 none 1 0 0
If the group quota is not set for the user specified, you will receive the following message:
Disk quotas for group wahib (gid 501): none
Repquota . Repquota produces summarized quota information of the disk usage and quotas for the specified file systems. Also, it prints for each user the current number of files and amount of space used (in kilobytes). Here is a sample output repquota gives you results may vary:
[root@deep] /# repquota -a
Block limits File limits
User used soft hard grace used soft hard grace
Roo -- 21 0 0 4 0 0
Named -- 6 0 0 5 0 0
Admin -- 388657 0 0 21 21 0 0
Wahib -- 6001 0 0 7 0 0
Block limits File limits
User used soft hard grace used soft hard grace
root -- 21 0 0 4 0 0
named -- 6 0 0 5 0 0
admin -- 388657 0 0 2121 0 0
wahib -- 6001 6000 0 none 7 0 0