What is the difference between sudo -i and sudo su -
I know both commands result in gaining a root-shell. But there are some differences. On some servers e.g. the prompt is different:
nomike@testerver:~> sudo -i root@testerver:~> logout nomike@testerver:~> sudo su - [root@testerver ~]#
So I guess the handling of ".bashrc" ".bash_profile" and ".profile" is somehow different.
Does one invoke a login shell and the other not?