Home  >  Article  >  Operation and Maintenance  >  What is the linux command to delete a user

What is the linux command to delete a user

青灯夜游
青灯夜游Original
2021-05-08 16:12:5359083browse

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.

What is the linux command to delete a user

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn