When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the Internet, I see sudo su
, sudo su -
, sudo -i
and sudo /bin/bash
being used to open a root session, but I'm not clear on the difference between these and when or if that difference matters.
Can someone clear this up for me?
sudo -s
andsudo su
.