Home  >  Article  >  System Tutorial  >  Tutorial: How to delete a normal user account in Ubuntu system?

Tutorial: How to delete a normal user account in Ubuntu system?

王林
王林forward
2024-01-02 12:34:222191browse

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

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

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

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

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

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

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

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

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

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

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

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

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!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete