Skip to content
masterclass Buddy

Linux & Shell · Environment Variable

SHELL

su runs a command or shell with another user and group ID. Use --login for a clean login environment and --pty for an isolated terminal.

Last updated

Since
2.38 for resetting the listed process resource limits

Syntax

su [options] [ - ] [ user | UID [ argument ...]]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • runuser(1)
  • setpriv(1)
  • login.defs(5)
  • shells(5)
  • pam(8)

Source: su(1) - Linux manual page. Checked 2026-11-03.