Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-24 00:17:29 +00:00
parent 84e267fb89
commit c61ed984a6
5 changed files with 16 additions and 16 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 --uid {{id}} {{username}}`
`sudo useradd {{-u|--uid}} {{id}} {{username}}`
- Create a new user with the specified shell:
`sudo useradd --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 --groups {{group1,group2,...}} {{username}}`
`sudo useradd {{-G|--groups}} {{group1,group2,...}} {{username}}`
- Create a new user with the default home directory:
`sudo useradd --create-home {{username}}`
`sudo useradd {{-m|--create-home}} {{username}}`
- Create a new user with the home directory filled by template directory files:
`sudo useradd --skel {{path/to/template_directory}} --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 --system {{username}}`
`sudo useradd {{-r|--system}} {{username}}`