Besides creating new user and showing list of user on ubuntu, you can also delete a user, if you need it. Just like create new user, there is also a dedicated command for deleting user on ubuntu.
To delete user on ubuntu, you can use the userdel command, simply run userdel followed by the username of the user you wish do delete, and just like adduser, you need to run userdel with root privilege.
sudo userdel [username]
sudo userdel jenny
sudo userdel michael
You can also delete a user along with the home directory, simply put parameter -r, for example like this:
sudo userdel -r jenny
sudo userdel -r michael
No comments:
Post a Comment