Linux command
quotaon 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Enable quotas on filesystem
sudo quotaon [/home]
Enable all quotas
sudo quotaon -a
Enable user quotas only
sudo quotaon -u [/home]
Enable group quotas only
sudo quotaon -g [/home]
Verbose output
sudo quotaon -v [/home]
说明
quotaon enables disk quota enforcement on filesystems. Quotas must first be configured in /etc/fstab and quota files created with quotacheck.
参数
- -a
- Enable all filesystems in /etc/fstab.
- -u
- Enable user quotas.
- -g
- Enable group quotas.
- -v
- Verbose mode.
- -p
- Print status only.
- -f
- Force enable.
FAQ
What is the quotaon command used for?
quotaon enables disk quota enforcement on filesystems. Quotas must first be configured in /etc/fstab and quota files created with quotacheck.
How do I run a basic quotaon example?
Run `sudo quotaon [/home]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a do in quotaon?
Enable all filesystems in /etc/fstab.