sudo su -

W Scott Lockwood III vladinator at
Mon Feb 13 12:27:24 UTC 2017

On Feb 13, 2017 06:07, "thufir" <hawat.thufir at> wrote:

To switch to root, this is reasonable?

thufir at doge:~$
thufir at doge:~$ sudo su -
root at doge:~#
root at doge:~# pwd
root at doge:~#



Sudo by itself makes one less syscall, and gives you this functionality
anyway. Use:

sudo -i # root shell, root's environment
sudo -s # root shell, invoking users environment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list