mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 07:50:31 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user