mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-25 11:52:34 +00:00
Update cheatsheets
This commit is contained in:
@@ -23,8 +23,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add a user to supplementary groups (mind the lack of whitespace):
|
||||
|
||||
`sudo usermod {{[-a|--append]}} {{[-G|--groups]}} {{group1,group2,...}} {{username}}`
|
||||
`sudo usermod {{[-aG|--append --groups]}} {{group1,group2,...}} {{username}}`
|
||||
|
||||
- Change a user home directory:
|
||||
|
||||
`sudo usermod {{[-m|--move-home]}} {{[-d|--home]}} {{path/to/new_home}} {{username}}`
|
||||
|
||||
- Lock an account:
|
||||
|
||||
`sudo usermod {{[-L|--lock]}} {{username}}`
|
||||
|
||||
- Unlock an account:
|
||||
|
||||
`sudo usermod {{[-U|--unlock]}} {{username}}`
|
||||
|
||||
Reference in New Issue
Block a user