On a multi-user Linux server, the user "analyst" reports the error "Disk quota exceeded" when trying to save a file in /home/analyst. The filesystem /home is only 38 % full according to df, and quotas are known to be enabled. You are logged in as root and need to verify whether the user has exceeded their individual quota. Which single command will give you an immediate, human-readable summary of that user's current block and inode usage and their configured soft/hard limits?
The command quota -u analyst queries the quota subsystem for the specified user and prints a concise report showing blocks used, inodes used, and each soft and hard limit on every quota-enabled filesystem. This lets an administrator instantly confirm whether the user is over quota.
du -sh /home/analyst shows directory size but not the quota limits, so it cannot confirm a quota violation. repquota -a | grep analyst does include the needed information, but it scans every quota-enabled filesystem and then requires extra filtering, making it slower and less direct than the user-specific quota command. edquota -u analyst opens an editor for changing limits and does not by itself display current usage unless the administrator manually reviews the file after editing, so it is not the quickest verification step.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a disk quota in Linux?
Open an interactive chat with Bash
What is the difference between blocks and inodes in a quota?
Open an interactive chat with Bash
How does `quota -u analyst` differ from `repquota -a`?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .