LX0-103 · Question #115
How can you turn off the group quota in /pub?
The correct answer is B. quotaoff-gv/pub. The quotaoff command with the -g flag disables group disk quotas on a specified filesystem or directory.
Question
How can you turn off the group quota in /pub?
Options
- Aquotaoff/pub
- Bquotaoff-gv/pub
- Cquotadown /pub
- Drm/pub/quota.group
How the community answered
(16 responses)- B88% (14)
- C6% (1)
- D6% (1)
Why each option
The quotaoff command with the -g flag disables group disk quotas on a specified filesystem or directory.
quotaoff/pub runs the string as a single token with no space, which the shell would interpret as a command named 'quotaoff/pub' rather than quotaoff with an argument, and it omits the required -g flag.
quotaoff -gv /pub correctly uses the -g flag to target group quotas (as opposed to user quotas targeted with -u) and the -v flag for verbose output confirming the action. The /pub argument specifies the mount point or directory on which to disable the group quota, which is the standard quotaoff invocation.
'quotadown' is not a valid Linux quota management command; the correct binary is quotaoff.
Deleting the quota.group file directly bypasses the quota subsystem and does not cleanly disable quotas; the filesystem may still enforce stale quota data or require a remount to reflect the change.
Concept tested: Linux quotaoff command for disabling group quotas
Source: https://linux.die.net/man/8/quotaoff
Topics
Community Discussion
No community discussion yet for this question.