Linux System Administrator Exam: Delete a Group Command | Study Material

Delete a Group Command

Question

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

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A

The correct command to delete a group from a Linux system is "groupdel" (option A).

Here is a brief description of the command and its options:

  • groupdel: This command is used to delete a group from the system.
  • Syntax: groupdel [groupname]
  • Options:
    • groupname: The name of the group that you want to delete.

Note that to delete a group, you need to have root privileges, as only the root user can delete a group.

The other options listed in the question are as follows:

  • groupmod: This command is used to modify a group's properties, such as its name, GID, or members. It is not used to delete a group.
  • groups: This command is used to display the groups that a user belongs to, not to delete a group.
  • groupedit: This is not a valid command in Linux systems.