'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?
Posted
by
Paul
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Paul
Published on 2013-11-12T23:30:34Z
Indexed on
2013/11/13
10:11 UTC
Read the original article
Hit count: 350
command-line
|sudo
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?
© Ask Ubuntu or respective owner