下面列出的命令是我们经常使用的一些命令,但还有更多命令存在。 请查阅手册页面以获取更多详细信息。
Quota. Quota 显示用户在文件系统上的磁盘使用情况和限制。 要显示用户磁盘使用情况和限制,请使用以下命令
[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 |
要显示用户所属组的组配额,请使用以下命令
[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 |
Disk quotas for group wahib (gid 501): none |
Repquota. Repquota 生成指定文件系统的磁盘使用情况和配额的汇总配额信息。 此外,它还会打印每个用户的当前文件数量和使用的空间量(以千字节为单位)。 这是一个 repquota 给出的示例输出您的结果可能有所不同
[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 |