如何查看剩余磁盘配额?


Answers:


29

在这里看一下quota命令:

http://linux.die.net/man/1/quota


配额

例如:

配额-u user1

系统响应:

Disk quotas for user user1 (uid 501):
     Filesystem  blocks   quota   limit   grace files   quota   limit  grace    
     /dev/hda6     992   50000   55000              71   10000   11000

配额报告

报告所有超过配额限制的用户:

配额-q

配额摘要报告:

repquota -a

Report for user quotas on device /dev/hda5
Block grace time: 7days; Inode grace time: 7days
                    Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      -- 4335200       0       0         181502     0     0
bin       --   15644       0       0            101     0     0
...
user1     --    1944       0       0            120     0     0    

由于限制设置为0,因此该用户未显示任何限制。


7

如果设置了配额,则“ quota”命令将显示详细信息。

quota -v

4
没有任何quota命令通过SSH 返回。这是否意味着未设置?
艾哈迈德
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.