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.
Question
Options
- Agroupdel
- Bgroupmod
- Cgroups
- Dgroupedit
How the community answered
(35 responses)- A94% (33)
- B3% (1)
- C3% (1)
Why each option
The `groupdel` command is the standard utility for removing a group from a Linux system.
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.
`groupmod` is used to modify an existing group's properties, such as its name or GID, not to delete it.
`groups` displays the groups a user belongs to, it does not modify or delete groups.
`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
Community Discussion
No community discussion yet for this question.