RHEL Linux - Red Hat System Administration Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

Practice this question and more.


Which command is used to remove a group in Linux?

  1. groupdel

  2. delgroup

  3. groupremove

  4. removegroup

The correct answer is: groupdel

The command used to remove a group in Linux is "groupdel." This command is part of the suite of user and group management commands available in most Linux distributions, including RHEL. When executed, "groupdel" will take the specified group name as an argument and remove it from the system. It is essential to note that using "groupdel" effectively deletes the group and may impact any users who belong to that group; those users will be left without a group assignment if the deleted group was their only one. The other commands do not exist in the standard set of Linux user management utilities. "delgroup," "groupremove," and "removegroup" may seem like logical alternatives, but they are either not recognized by the system or do not serve the purpose of removing groups from the system. Hence, "groupdel" is the appropriate and correct choice for this function.