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 πŸŽ€

  • -c command, --command=command β€” pass a single command to the shell with -c.
  • -g group, --group=group β€” specify the primary group.
  • -G group, --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 of su always creates a new pseudo-terminal if it is attached to a TTY.
  • -w list, --whitelist-environment=list β€” do not reset the environment variables specified by the list. multiple variables can be separated by commas.
  • -s shell, --shell=shell β€” run shell if /etc/shells allows 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