summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorKarol Baraniecki <karol@baraniecki.eu>2023-02-12 18:45:56 +0100
committerSam Atkins <atkinssj@gmail.com>2023-02-16 12:52:11 +0000
commit7fc7d4f8c642d776488a52758e428b33fd8e6693 (patch)
tree224e9d591665b271cdbe9e9e23a6c37dab894fb3 /Base/usr
parent040012a196e4288cdb8fa097e9be397662eb8795 (diff)
downloadserenity-7fc7d4f8c642d776488a52758e428b33fd8e6693.zip
su: Document the [-c command] option
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man1/su.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/su.md b/Base/usr/share/man/man1/su.md
index 7bf840b92d..fd226c34d5 100644
--- a/Base/usr/share/man/man1/su.md
+++ b/Base/usr/share/man/man1/su.md
@@ -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)