mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
su: Document the [-c command] option
This commit is contained in:
parent
040012a196
commit
7fc7d4f8c6
Notes:
sideshowbarker
2024-07-17 05:01:20 +09:00
Author: https://github.com/karolba Commit: https://github.com/SerenityOS/serenity/commit/7fc7d4f8c6 Pull-request: https://github.com/SerenityOS/serenity/pull/17347 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/Popaulol ✅ Reviewed-by: https://github.com/kleinesfilmroellchen
@ -6,6 +6,7 @@ su - switch to another user
|
||||
|
||||
```sh
|
||||
$ su [-] [user]
|
||||
$ su [-] [user] [-c command]
|
||||
```
|
||||
|
||||
## 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
|
||||
|
||||
* `-c`, `--command`: Execute a command using `/bin/sh` instead of starting an interactive shell
|
||||
|
||||
## Arguments
|
||||
|
||||
* `user`: User to switch to (defaults to the user with UID 0)
|
||||
|
Loading…
Reference in New Issue
Block a user