Difficulty: Easy
Correct Answer: /sbin/edquota
Explanation:
Introduction / Context:
Disk quotas limit the amount of filesystem space or inodes a user or group can consume. Linux provides a set of quota tools to enable, configure, and report usage. Administrators must know which tool actually edits quota limits versus those that merely enable or display them.
Given Data / Assumptions:
Concept / Approach:
The workflow typically is: enable quotas with quotaon, optionally initialize with quotacheck, and then set limits with edquota. The quota command displays current usage and limits; it does not edit them. Nonexistent commands (like /sbin/usrquota) are distractors.
Step-by-Step Solution:
Verification / Alternative check:
After editing, use quota -u user or repquota -a to confirm limits. Ensure /etc/fstab includes usrquota and/or grpquota options and that quotaon has been executed.
Why Other Options Are Wrong:
Common Pitfalls:
Editing quotas before enabling them; forgetting to mount filesystems with quota options; misinterpreting block units (often 1 KB or 1 block size unit depending on build); and not running quotacheck after major changes.
Final Answer:
/sbin/edquota
Discussion & Comments