Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-09 00:16:26 +00:00
parent f8bee5305f
commit 9e2d0f72f1
116 changed files with 330 additions and 330 deletions

View File

@@ -15,24 +15,24 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new user with the specified user ID:
`sudo useradd {{-u|--uid}} {{id}} {{username}}`
`sudo useradd {{[-u|--uid]}} {{id}} {{username}}`
- Create a new user with the specified shell:
`sudo useradd {{-s|--shell}} {{path/to/shell}} {{username}}`
`sudo useradd {{[-s|--shell]}} {{path/to/shell}} {{username}}`
- Create a new user belonging to additional groups (mind the lack of whitespace):
`sudo useradd {{-G|--groups}} {{group1,group2,...}} {{username}}`
`sudo useradd {{[-G|--groups]}} {{group1,group2,...}} {{username}}`
- Create a new user with the default home directory:
`sudo useradd {{-m|--create-home}} {{username}}`
`sudo useradd {{[-m|--create-home]}} {{username}}`
- Create a new user with the home directory filled by template directory files:
`sudo useradd {{-k|--skel}} {{path/to/template_directory}} {{-m|--create-home}} {{username}}`
`sudo useradd {{[-k|--skel]}} {{path/to/template_directory}} {{[-m|--create-home]}} {{username}}`
- Create a new system user without the home directory:
`sudo useradd {{-r|--system}} {{username}}`
`sudo useradd {{[-r|--system]}} {{username}}`