[Linux] User Management: Deleting Users

User Management: Delete User

userdel 用户名

note

1. Delete the user, but keep the home directoryuserdel 用户名

2. Delete the user and the user's home directory.userdel -r 用户名


Commands that have not yet been touched are used in this process:

ps -ef|grep 筛选的信息Query the port and filter out the contained information. Example:ps -ef|grep 1494

kill -9 端口号Kill the port number process. Example:kill -9 1494

Process signal
Linux signal (signal) mechanism

When deleting a user, the home directory is generally not deleted.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325478136&siteId=291194637