logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

su - run a shell or command as another user

Name

       su - run a shell or command as another user

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
              Create a new pseudo-terminal when running the shell.

       -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)

                                                                                                              ()

Synopsis

       su options [-] [<user> [<argument>...]]

See Also