Linux repquota命令:为文件系统总结磁盘配额。
Linux repquota命令 功能描述
使用repquota命令可以显示指定文件系统的使用和配额的摘要,清楚地知道每一位用户或每一个组群已使用多少磁盘空间。
Linux repquota命令 语法
repquota [选项] [文件系统]
命令中各选项的含义如表所示。
Linux repquota命令 示例
查看/home目录所在文件系统的配额摘要
[root@rhel ~]# repquota /home
*** Report for user quotas on device /dev/sda5
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 20 0 0 2 0 0
zhangsan -+ 0 0 0 5 3 5 6days
sales -- 4 0 0 1 0 0
查看磁盘分区/dev/sda5所在文件系统的配额摘要
[root@rhel ~]# repquota /dev/sda5
*** Report for user quotas on device /dev/sda5
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 20 0 0 2 0 0
zhangsan -+ 0 0 0 5 3 5 6days
sales -- 4 0 0 1 0 0
查看所有启用配额的文件系统的配额摘要
[root@rhel ~]# repquota -a
*** Report for user quotas on device /dev/sda5
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 20 0 0 2 0 0
zhangsan -+ 0 0 0 5 3 5 6days
sales -- 4 0 0 1 0 0