su [options] [user]Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
su -Starts a root login shell if root login is enabled.
su - appuserStarts a login shell as appuser.
| Field | Details |
|---|---|
| Command | su |
| Category | Permissions and Ownership |
| Primary use | Switches user or starts a shell as another user. |
| Syntax | su [options] [user] |