Linux quotaon command
The Linux quotaon command is used to enable disk space limits.
Running the quotaon command can enable disk space limits for users and groups; the root directory of each partition's filesystem must contain quota.user and quota.group configuration files.
Syntax
quotaon [-aguv][文件系统...]
Parameter Description:
- -a Enable space limits on partitions that have quota settings enabled in the /ect/fstab file.
- -g Enable disk space limits for groups.
- -u Enable disk space limits for users.
- -v Show the command execution process.
For the entire filesystem:
quotaon -auvg
The quotaon -auvg command only needs to be run when starting the Quota service for the first time; on the next startup, the /etc/rc.d/rc.sysinit initialization script will run the command automatically.
For a single partition only:
quotaon -uvg /mnt/sdb
Enable and disable disk quota features on a filesystem:
quotaon /home # 启用
quotaoff /home # 禁用
Linux Command Reference