Home > Article > Operation and Maintenance > What is the linux command to delete a user
The Linux command to delete a user is "userdel", and the basic syntax format is "userdel username"; if you want to delete the files left by the user on the system, you can use "userdel -r username" Order.
#The operating environment of this tutorial: Red Hat Enterprise Linux 6.1 system, Dell G3 computer.
User management under Linux: deleting users
Basic syntax:
userdel 用户名
But when we delete users, we obviously need to use root user permissions. It is possible to delete it.
It is best to delete the files it leaves on the system. You can use "userdel -r username
" to achieve this.
Example:
sudo userdel -r alvin
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What is the linux command to delete a user. For more information, please follow other related articles on the PHP Chinese website!