mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
33 lines
498 B
Markdown
33 lines
498 B
Markdown
# The `useradd` command
|
|
|
|
Delete users accounts and their related files.
|
|
|
|
## Table of contents <!-- omit in toc -->
|
|
|
|
1. [TL;DR](#tldr)
|
|
1. [Sources](#sources)
|
|
|
|
## 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]
|
|
|
|
<!--
|
|
References
|
|
-->
|
|
|
|
<!-- Others -->
|
|
[cheat.sh]: cheat.sh/userdel
|