mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-28 18:44:54 +02:00
474 B
474 B
userdel
Remove a user account or remove a user from a group. Note: all commands must be executed as root. More information: https://man7.org/linux/man-pages/man8/userdel.8.html.
- Remove a user:
userdel {{name}}
- Remove a user along with their home directory and mail spool:
userdel --remove {{name}}
- Remove a user from a group:
userdel {{name}} {{group}}
- Remove a user in other root directory:
userdel --root {{path/to/other/root}} {{name}}