totn UNIX

UNIX Basic commands: su

The su command creates a shell with the user ID of another user.

Syntax

The syntax for the su command is:

su [option] [user] [shell_args]

Options

Option Description
- Complete the entire login sequence.

Example

su root
su tech

* Please note that there are many flavors of UNIX, so if in doubt, consult your man pages.