nerdexam
CompTIA

LX0-104 · Question #24

Which command can be used to delete a group from a Linux system?

The correct answer is A. groupdel. The groupdel command is the standard utility for removing a group from a Linux system.

Administrative Tasks

Question

Which command can be used to delete a group from a Linux system?

Options

  • Agroupdel
  • Bgroupmod
  • Cgroups
  • Dgroupedit

How the community answered

(35 responses)
  • A
    94% (33)
  • B
    3% (1)
  • C
    3% (1)

Why each option

The `groupdel` command is the standard utility for removing a group from a Linux system.

AgroupdelCorrect

The `groupdel` command is specifically designed to delete a group from the system's configuration files, primarily `/etc/group` and `/etc/gshadow`. When executed, `groupdel` removes all entries related to the specified group, ensuring that no users can be members of or assign files to that group anymore. This command is part of the standard user and group management utilities.

Bgroupmod

`groupmod` is used to modify an existing group's properties, such as its name or GID, not to delete it.

Cgroups

`groups` displays the groups a user belongs to, it does not modify or delete groups.

Dgroupedit

`groupedit` is not a standard Linux command for managing groups; `groupadd`, `groupmod`, and `groupdel` are the common utilities.

Concept tested: Linux group deletion

Source: https://man7.org/linux/man-pages/man8/groupdel.8.html

Topics

#groupdel#group management#user and group administration

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice