mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 09:49:28 +00:00
Update cheatsheets
This commit is contained in:
@@ -23,3 +23,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Execute a command as another user:
|
||||
|
||||
`su - {{username}} {{[-c|--command]}} "{{command}}"`
|
||||
|
||||
- Switch to a given user and use a specific shell (e.g., zsh, fish, bash):
|
||||
|
||||
`su {{[-s|--shell]}} /{{path/to/shell}} {{username}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`su {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`su {{[-V|--version]}}`
|
||||
|
||||
Reference in New Issue
Block a user