Linux userdel command

Linux 命令大全Linux Command Collection

The Linux userdel command is used to delete user accounts.

userdel can delete user accounts and related files. If no parameter is added, only the user account is deleted, not the related files.

Syntax

userdel [-r][用户帐号]

Parameter Description:

  • -r  Delete the user's home directory and all files in the directory.

Examples

Delete user account

# userdel hnlinux

Linux 命令大全Linux Command Collection

Other Extensions