What is the difference between these two commands: su and sudo?

Subh Prakash Singh
Invent the Future
su →
If you want temporary access to another account, you use the su command. For example, if you are logged in as user abha and want to switch to user prabha, type:
su prabha
sudo →
The word sudo means "superuser do". When you switch (change your role) to a superuser, you gain every right that belongs to the superuser. That means only they can run the sudo command with root. By using it, they can install or deny any Linux command. Example:
sudo apt update









