Linux command
quota 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show user quota
quota
Show specific user's quota
quota -u [username]
Show group quota
quota -g [groupname]
Verbose output
quota -v
Show all filesystems
quota -A
说明
quota displays current disk usage and limits for users or groups on filesystems where quotas are enabled. It reads the kernel's quota subsystem to report how much space and how many inodes a user or group has consumed, alongside the configured soft and hard limits. When soft limits are exceeded, the tool shows the remaining grace period before enforcement takes effect. Running without arguments displays the calling user's quotas across all mounted filesystems, while the -u and -g flags query specific users or groups. The -v flag reports on all quota-enabled filesystems, including those where no space is currently consumed.
参数
- -u
- User quota.
- -g
- Group quota.
- -v
- Verbose output.
- -s
- Human-readable sizes.
- -A
- All filesystems.
FAQ
What is the quota command used for?
quota displays current disk usage and limits for users or groups on filesystems where quotas are enabled. It reads the kernel's quota subsystem to report how much space and how many inodes a user or group has consumed, alongside the configured soft and hard limits. When soft limits are exceeded, the tool shows the remaining grace period before enforcement takes effect. Running without arguments displays the calling user's quotas across all mounted filesystems, while the -u and -g flags query specific users or groups. The -v flag reports on all quota-enabled filesystems, including those where no space is currently consumed.
How do I run a basic quota example?
Run `quota` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u do in quota?
User quota.