Go to main content

手册页部分 8:系统管理命令

退出打印视图

更新时间: 2022年7月27日 星期三
 
 

quota(8)

名称

quota - 显示用户的 UFS 或 ZFS 文件系统磁盘配额和使用情况

用法概要

quota [-v] [username]

描述

quota 显示用户的 UFS 或 ZFS 磁盘使用情况和限制。The {PRIV_SYS_MOUNT} privilege is required to use the optional username argument to view the usage and limits of other users.

不带任何选项的 quota 仅显示使用量超过配额的已挂载文件系统的相关警告。Remotely mounted file systems which are not mounted with the quota option or do not have quotas turned on are ignored.See mount_nfs(8).

username 可以是用户的数字 UID。

quota only checks NFS filesystems which are explicitly mounted with the quota mount option.

选项

–v

Display user's quota on all mounted file systems not mounted with noquota where quotas exist.

文件

/etc/mnttab

当前已挂载文件系统的列表

属性

有关下列属性的说明,请参见 attributes(7)

属性类型
属性值
可用性
system/core-os

另请参见

attributes(7), privileges(7), zones(7), edquota(8), mount_nfs(8), quotacheck(8), quotaon(8), repquota(8), rquotad(8)

附注

如果 rquotad 守护进程正在运行,quota 将显示已挂载 NFS 的基于 UFS 或 ZFS 的文件系统的配额。See rquotad(8).在 zones(7) 环境中,quota 仅显示调用该命令的区域的配额。

quota 会针对多个挂载点多次显示同一文件系统的条目。例如,

# quota -v user1

可能会在挂载点 /home/user1/home/user2/home/user 上显示相同的 user1 配额信息(如果全部三个挂载点都是从启用了配额的同一文件系统挂载的)。