Home > Article > System Tutorial > Tutorial: How to delete a normal user account in Ubuntu system?
A lot of users have been added to the Ubuntu system. I want to delete the unused users. How to delete them? Let’s take a look at the detailed tutorial below.
1. Open the terminal command line and use the userdel command to delete the specified user. Be sure to add the sudo permission command, as shown in the figure below
2. When deleting, must pay attention to the in the administrator directory. Ordinary users do not have this permission , as shown in the figure below
3. After the deletion command is executed, how to determine whether it has been truly deleted? Next we use the cat command to open the passwd file, as shown in the figure below
4. We see that the deleted user information is no longer in the
passwd file, which proves that the user has been deleted, as shown in the figure below
5. Then we enter
the home folder, what you can see is the deleted user, its folder has not been deleted , as shown in the figure below
6. If you also want to delete the user’s folder,
need to bring the r parameter, as shown in the figure below prompt, but you must pay attention when performing this operation
7. In summary, to delete a user in Ubuntu mainly uses the
userdel command , pay attention to the use of the parameter r.
The above is the detailed content of Tutorial: How to delete a normal user account in Ubuntu system?. For more information, please follow other related articles on the PHP Chinese website!