mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
23 lines
356 B
Markdown
23 lines
356 B
Markdown
# Useradd
|
|
|
|
Delete a user account and its related files.
|
|
|
|
## TL;DR
|
|
|
|
```sh
|
|
# Remove a user.
|
|
sudo userdel username
|
|
|
|
# Remove a user in other root directory.
|
|
sudo userdel --root path/to/other/root username
|
|
|
|
# Remove a user along with the home directory and mail spool.
|
|
sudo userdel --remove username
|
|
```
|
|
|
|
## Sources
|
|
|
|
- [cheat.sh]
|
|
|
|
[cheat.sh]: cheat.sh/userdel
|