mirror of https://github.com/CrimsonTome/tldr.git
deluser: prefix examples with sudo (#8174)
parent
88fd34d9f9
commit
057f52541c
|
@ -1,21 +1,20 @@
|
|||
# deluser
|
||||
|
||||
> Delete a user from the system.
|
||||
> Note: all commands must be executed as root.
|
||||
> More information: <https://manpages.debian.org/latest/adduser/deluser.html>.
|
||||
|
||||
- Remove a user:
|
||||
|
||||
`deluser {{username}}`
|
||||
`sudo deluser {{username}}`
|
||||
|
||||
- Remove a user and their home directory:
|
||||
|
||||
`deluser --remove-home {{username}}`
|
||||
`sudo 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}}`
|
||||
`sudo deluser --backup-to {{path/to/backup_directory}} --remove-home {{username}}`
|
||||
|
||||
- Remove a user, and all files owned by them:
|
||||
|
||||
`deluser --remove-all-files {{username}}`
|
||||
`sudo deluser --remove-all-files {{username}}`
|
||||
|
|
Loading…
Reference in New Issue