mirror of https://github.com/CrimsonTome/tldr.git
deluser, userdel: add page (#5245)
parent
a810ca72d7
commit
7dcdcea28c
|
@ -1,15 +0,0 @@
|
|||
# deluser
|
||||
|
||||
> Remove a user account or remove a user from a group.
|
||||
|
||||
- Remove a user:
|
||||
|
||||
`deluser {{name}}`
|
||||
|
||||
- Remove a user along with their home directory and mail spool:
|
||||
|
||||
`deluser -r {{name}}`
|
||||
|
||||
- Remove a user from a group:
|
||||
|
||||
`deluser {{name}} {{group}}`
|
|
@ -0,0 +1,21 @@
|
|||
# deluser
|
||||
|
||||
> Delete a user from the system.
|
||||
> Note: all commands must be executed as root.
|
||||
> More information: <https://manpages.debian.org/adduser/deluser.8.html>.
|
||||
|
||||
- Remove a user:
|
||||
|
||||
`deluser {{username}}`
|
||||
|
||||
- Remove a user and their home directory:
|
||||
|
||||
`deluser --remove-home {{username}}`
|
||||
|
||||
- Remove a user and their home, but backup their files into a `.tar.gz` file in the specified directory:
|
||||
|
||||
`deluser --backup-to {{path/to/backup_directory}} --remove-home {{username}}`
|
||||
|
||||
- Remove a user, and all files owned by them:
|
||||
|
||||
`deluser --remove-all-files {{username}}`
|
|
@ -1,7 +1,21 @@
|
|||
# userdel
|
||||
|
||||
> Remove a user.
|
||||
> 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 and their home directory:
|
||||
- Remove a user:
|
||||
|
||||
`userdel -r {{name}}`
|
||||
`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}}`
|
||||
|
|
Loading…
Reference in New Issue