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
usrquotato/etc/fstabfor/partition(can also usegrpquota)sudo mount -o remount /partitionsudo cat /proc/mounts |grep quota
sudo quotacheck -u /partition(-gif usinggrpquota)sudo quotaon -u /partitionsudo 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-vverbose;-shuman readable)sudo repquota -s /partition(report quota)
Edit this page on GitHub