How do I remove a group in Linux?

Trang Mắm

New member
How do I remove a group in Linux?
Answer
Remove a Group
  • To remove an existing group from your system, you will need to be logged in using a valid user account.
  • Now that we’re logged in, we can remove the group with a Group Name of professors by entering the following groupdel command: sudo groupdel professors.
Photo in the article by “Wikimedia Commons”
Code:
https://commons.wikimedia.org/wiki/File:Scientific_Linux_7.3.png
To get root access, you can use one of a variety of methods:
  • Run sudo <command> and type in your login password, if prompted, to run only that instance of the command as root.
  • Run sudo -i .
  • Use the su (substitute user) command to get a root shell.
  • Run sudo -s .
 

Tìm kiếm

Back
Top