mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:57:44 +00:00
su: Document the [-c command] option
This commit is contained in:
parent
040012a196
commit
7fc7d4f8c6
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@ su - switch to another user
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ su [-] [user]
|
$ su [-] [user]
|
||||||
|
$ su [-] [user] [-c command]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
@ -18,6 +19,8 @@ When called with no user-specified, `su` defaults to switch to the *root* user.
|
||||||
|
|
||||||
* `-`, `-l`, `--login`: Start the shell as it was a real login
|
* `-`, `-l`, `--login`: Start the shell as it was a real login
|
||||||
|
|
||||||
|
* `-c`, `--command`: Execute a command using `/bin/sh` instead of starting an interactive shell
|
||||||
|
|
||||||
## Arguments
|
## Arguments
|
||||||
|
|
||||||
* `user`: User to switch to (defaults to the user with UID 0)
|
* `user`: User to switch to (defaults to the user with UID 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue