mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-05 18:53:20 +02:00
su: reword example descriptions and add a new one (#3715)
This commit is contained in:
parent
286b7d8f58
commit
cc6f7005c2
1 changed files with 7 additions and 3 deletions
|
@ -2,14 +2,18 @@
|
||||||
|
|
||||||
> Switch shell to another user.
|
> Switch shell to another user.
|
||||||
|
|
||||||
- Switch to superuser (admin password required):
|
- Switch to superuser (requires the root password):
|
||||||
|
|
||||||
`su`
|
`su`
|
||||||
|
|
||||||
- Switch to user {{username}} (password required):
|
- Switch to a given user (requires the user's password):
|
||||||
|
|
||||||
`su {{username}}`
|
`su {{username}}`
|
||||||
|
|
||||||
- Switch to user {{username}} and simulate a full login shell:
|
- Switch to a given user and simulate a full login shell:
|
||||||
|
|
||||||
`su - {{username}}`
|
`su - {{username}}`
|
||||||
|
|
||||||
|
- Execute a command as another user:
|
||||||
|
|
||||||
|
`su - {{username}} -c "{{command}}"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue