Intermediate LevelLinux Commands & SysAdmin
How do you configure disk quotas (quotaon, edquota) to limit user disk usage?
❓ Interview Prompt: Explain disk quotas, soft limits (grace period warnings) vs hard limits (strict blockage), usrquota/grpquota mount options, and edquota.
Disk Quotas restrict the amount of disk space or number of inodes a user or group can consume on a target filesystem partition:
Quota Types:
•
Soft Limit: Threshold that triggers warning alerts while allowing a grace period (e.g. 7 days) to reduce storage.
•
Hard Limit: Absolute maximum storage limit that blocks all further write operations instantly!
Code Implementation Example
bash
# Edit user quota limits interactively
sudo edquota -u deploy
# Display current quota usage report for all users
sudo repquota -a💡Managing user storage consumption limits using edquota and repquota.
🎯 Interview Key Takeaway
Use soft limits to warn users approaching quota caps, and hard limits to block filesystem space exhaustion.
#Quotas#edquota#Storage#SysAdmin#Intermediate
Back to all Linux Commands & SysAdmin Questions→