sudo

Sudo and home folder

I suspect behavior of setting $HOME when using sudo may differ between Linux flavors. As most modern Unix operating systems discourage using the root account and promote using sudo, I have mostly always used “sudo -s”. I expect that my shell then will reference /root as my home folder($HOME). I…