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

What is the linux command to delete a user

青灯夜游
Release: 2023-01-05 16:13:54
Original
59132 people have browsed it

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 用户名
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template