Disk quotas are enabled on /home. Which command opens a user's soft and hard limits in an editor so you can change them?

LPIC-1 Exam 101-500, objective 104. Devices, Linux filesystems, filesystem hierarchy standard medium

Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.

It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.

The options

Correct edquota -u alice

Correct. edquota opens a temporary file in $EDITOR containing alice's block and inode soft limits, hard limits and current usage; saving it applies the limits.

Not correct quota -u alice

Wrong. quota only displays the quotas and current usage for a user. It is the reporting command, not the editing one.

Not correct repquota /home

Wrong. repquota prints a summary report of quotas and usage for every user on a filesystem. Again reporting, not editing.

Not correct quotacheck -avug

Wrong. quotacheck scans a filesystem and rebuilds the quota accounting files (aquota.user, aquota.group) so recorded usage matches reality. It sets no limits.

Why

The quota workflow: add usrquota and/or grpquota to the fstab options and remount, run quotacheck to build the accounting files, quotaon to enable enforcement, edquota (or setquota, which is non-interactive) to set limits, and quota/repquota to report. Soft limits may be exceeded until the grace period expires; hard limits cannot be exceeded at all.

Where this comes from

Cited
LPI exam objective 104.4
What it says
Set and report user and group disk quotas.

Practise this

Reading one question is not practice. The trainer will draw a set from objective 104 and space the ones you get wrong.

Practise LPIC-1 Exam 101-500