Hi,

This little question has been irking me for some time. I know that there is a difference between SUDO -i and SUDO su.

Which sudo command actually changes your prompt to a root prompt and thereby executes commands is if it were root? Additionally, which sudo command allows a user to execute a command as themselves however with root privileges?

Or am I looking at this the wrong way?

Thanks