Linux Sysadmin Test Prep
Disk Quotas
Disk Quotas
Quotas
- sudo apt install quota
Argument | Full Argument | Meaning |
---|---|---|
-a | --all | all automatically mounted, non-NFS filesystems in /etc/fstab |
-u | --user | user quotas; default |
-g | --group | group quotas |
-P | --project | project quotas |
- add
usrquota
to/etc/fstab
for/partition
(can also usegrpquota
)sudo mount -o remount /partition
sudo cat /proc/mounts |grep quota
sudo quotacheck -u /partition
(-g
if usinggrpquota
)sudo quotaon -u /partition
sudo edquota -u username
- single block is the same as one kilobyte of disk space
sudo setquota -u username 200M 220M 0 0 /partition
( 200M soft; 220 hard; 0 0 are inode limits)sudo quota -vs username
(quota info-v
verbose;-s
human readable)sudo repquota -s /partition
(report quota)
Edit this page on GitHub