undo sudo

Mario Vukelic mario.vukelic at dantian.org
Wed May 21 21:17:50 UTC 2008

On Wed, 2008-05-21 at 14:03 -0700, Steve Lamb wrote:
> Conversely what's wrong with
> sudo su -i and sudo su -s other than they're 3 characters longer. 
> Functionally they are identical, no?  ;)

Nothing I think. According to the docs:

To start a root shell (i.e. a command window where you can run root
commands), starting root's environment and login scripts, use: 
sudo -i     (equivalent to sudo su - , gives you roots environment configuration)

To start a root shell, but keep the current shell's environment, use: 
sudo -s     (equivalent to sudo su)


More information about the ubuntu-users mailing list