nerdexam
CompTIA

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.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

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)
  • B
    88% (14)
  • C
    6% (1)
  • D
    6% (1)

Why each option

The quotaoff command with the -g flag disables group disk quotas on a specified filesystem or directory.

Aquotaoff/pub

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.

Bquotaoff-gv/pubCorrect

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.

Cquotadown /pub

'quotadown' is not a valid Linux quota management command; the correct binary is quotaoff.

Drm/pub/quota.group

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

#quotaoff#group quota#filesystem quota#disk quota management

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice