Linux Commands | User Management | su Switch Account
su Command
The su command creates a subshell as another user account. It is used when you need to work temporarily as another user.
Many people think su means “super user”, but it actually means “substitute user”.
Usage
su [-] [user ID][arguments]
Option
- If you use a hyphen (
-), the new shell performs the user’s login process. If no option is given, the new shell only acts as a shell.