Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux quotaon command

Linux quotaon command

Linux Command Reference Linux Command Reference

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:

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 Linux Command Reference