Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-26 00:18:43 +00:00
parent d27ceafd82
commit 5871f35fe8
91 changed files with 438 additions and 37 deletions

View File

@@ -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}}`