Guides 11791 Published by

Make Tech Easier explains the differences between Su, Sudo Su, Sudo -s and Sudo -i.



The Differences between Su, Sudo Su, Sudo -s and Sudo -i

There are many different ways to get a root session in the Linux terminal. This can create some confusion, as most beginning users who are looking to gain root privileges might not be familiar with how each command can gain root access, how they are different and when these differences matter. Here we take apart each of the many different commands used to gain root access in a terminal, explain how they gain root, when to use them, and everything in between. 

The Differences between Su, Sudo Su, Sudo -s and Sudo -i