Linux Remove User and Group

Once you know how to add users and groups in linux, as I post in the Linux adduser and groupadd yesterday. Next you'll want to know how to erase the linux users and groups.
linux userdel,linux remove user,delete user linux,linux remove group,linux delete user
Basically a way to remove it is just as easy with the how to make it, there are some differences in the command. But it will not make you trouble, if you want to learn.
To run the command you have to be a super user. Use the command sudo su then enter your password.
$ Sudo su
password: ****
After a successful characters "$" will change to "#".

Linux Remove Group
To delete a group using command groupdel.
# Groupdel <group_name>
Suppose you want to delete the name of the group newgroup then run the following command:
# Groupdel newgroup

Linux Delete User and Home Directory
But if you want to delete user and home directory use the command userdel-r.
# Userdel-r <user_name>
For example:
# Userdel-r newuser

Delete User Linux
To delete a user using command userdel.
# Userdel <user_name>
Linux userdel example
Example you want to delete the user newuser then run the following command:
# Userdel newuser

The example above is one way to remove users and groups on Linux Operating system. How to delete user and group linux is very easy. Please feel free to practice your own, I hope this tutorial is useful for those who need it.

Related post :

No comments :