Linux userdel command
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 hnlinuxOther Extensions
Linux Command Collection