SU(1)
π su(1) β run a shell or command as another user
okay so welcome to the SU(1) manual, bestie. this one is giving βbecome another user in the terminalβ realness: su runs a shell or command as another user. periodt. β¨
πΈ NAME πΈ
su β run a shell or command as another user π«Ά
π¦ SYNOPSIS π¦
su options [-] [<user> [<argument>...]]
π OPTIONS π
-ccommand,--command=command β pass a single command to the shell with-c.-ggroup,--group=group β specify the primary group.-Ggroup,--supp-group=group β specify a supplemental group.-h,--helpβ show a help message.-,-l,--loginβ make the shell a login shell.-m,-p,--preserve-environmentβ do not reset environment variables.-P,--ptyβ ignored for backwards compatibility. this version ofsualways creates a new pseudo-terminal if it is attached to a TTY.-wlist,--whitelist-environment=list β do not reset the environment variables specified by the list. multiple variables can be separated by commas.-sshell,--shell=shell β run shell if/etc/shellsallows running as that shell instead of the default shell for the user.-V,--versionβ show the program version.
π SEE ALSO π
sudo(8)β bestie crossover moment π
thatβs the whole SU(1) page, no cap. sign-off from the footer: sudo-rs 0.2.15 Β· SU(1) Β· no date in the original footer, so weβre keeping it mysterious π«Άβ¨
π¦ where this page comes from
- arch rolling: sudo-rs 0.2.15-1 Β· Apache-2.0 AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms