切换用户访问
商品描述
改变有效用户ID和组ID的 USER.
-, -l, --login
make the shell a login shell
-c, --commmand=COMMAND
pass a single COMMAND to the shell with -c
-f, --fast
pass -f to the shell (for csh or tcsh)
-m, --preserve-environment
do not reset environment variables
-p
same as -m
-s, --shell=SHELL
run SHELL if /etc/shells allows it
--help
display this help and exit
--version
output version information and exit
仅仅意味着 -l。 给定的用户如果没有,假设根。