Security News > 2021 > April > Linux 101: The different types of sudo and su
Knowing which sudo or su command to run is important.
If you're a new Linux admin, you probably at least know about sudo.
Even though most every Linux distribution uses sudo, some of them allow you to su to the super user account-otherwise known as root.
If you run the command sudo su - you will switch to the root user which will then execute all /etc/profile,.
Most often, you'll only have to run basic sudo or su commands.
If there's a command you must run, and it fails with a minimal sudo command, either sudo - or sudo su - will always work.
News URL
https://www.techrepublic.com/article/linux-101-the-different-types-of-sudo-and-su/#ftag=RSS56d97e7