Ravi Sir's Cards › AWS
su vs sudo
This comparison card contrasts su and sudo. su is described as switches to another user. sudo Runs one command as root. The card pairs su with become a service user, and sudo with daily admin work.
Read card text
What this card says
Access
su
Switches to another user.
sudo
Runs one command as root.
Key points
Needs the target password.
Uses your password, logged.
Example
su - kavita
Use when
Become a service user.
Daily admin work.