LFCS · 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 utilized to remove an existing group account from a Linux system.
Question
Options
- Agroupdel
- Bgroupmod
- Cgroups
- Dgroupedit
How the community answered
(28 responses)- A93% (26)
- B4% (1)
- C4% (1)
Why each option
The `groupdel` command is utilized to remove an existing group account from a Linux system.
The `groupdel` command is specifically designed and used to delete an existing group from the system by removing its entry from `/etc/group` and `/etc/gshadow`.
`groupmod` is used to modify an existing group's properties, such as its name or GID, not to delete it.
`groups` is used to display the groups a user belongs to.
`groupedit` is not a standard command for group management in Linux; `groupadd`, `groupmod`, and `groupdel` are the standard utilities.
Concept tested: Deleting a Linux group
Source: https://linux.die.net/man/8/groupdel
Topics
Community Discussion
No community discussion yet for this question.