From 06ebdf82f74a5c75c23abbd519c7829151716c6d Mon Sep 17 00:00:00 2001 From: fanzidanzhidi Date: Mon, 14 Mar 2022 10:42:13 +0100 Subject: [PATCH] Base: Add su(1) manpage Base: Add su(1) manpage Base: Add su(1) manpage --- Base/usr/share/man/man1/su.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Base/usr/share/man/man1/su.md diff --git a/Base/usr/share/man/man1/su.md b/Base/usr/share/man/man1/su.md new file mode 100644 index 0000000000..f55f46821b --- /dev/null +++ b/Base/usr/share/man/man1/su.md @@ -0,0 +1,33 @@ +## Name + +su - switch to another user + +## Synopsis + +```sh +$ su +``` + +## Description + +`su`: Switch to another user. + +When called with no user-specified, `su` defaults to switch to the *root* user. Need to enter the password if the user switch to has one. + +## Arguments + +* `user`: User to switch to (defaults to the user with UID 0) + +## Examples + +Switch to root user + +```sh +$ su +``` + +Switch to another user + +```sh +$ su nona +```