Command
suExplanation
su allows switching to another user account or becoming root.
Examples
Switch to user with login shell
su - usernameSwitch to root user
suRun command as user
su -c "command" usernamesusu allows switching to another user account or becoming root.
Switch to user with login shell
su - usernameSwitch to root user
suRun command as user
su -c "command" username