You are viewing a single comment's thread from:
RE: Learning Linux Ubuntu Class notes #1 & #2
Nice write-up! Just a minor remark:
If you use sudo su, you will change the user to sudo. To change back to your own account use su myuser
If you use sudo su
, you'll spawn a new shell session as user root, running inside the previous user session. While you get to myuser
with another su myuser
from there, this actually spawns another shell session inside the root session which already runs inside the user session - so you're actually 3 levels deep, not "back". You could just use Ctrl+d (or type exit
) from the root session to get back to the original user shell.
oh. Thank you for this. Am I correct in saying if I use sudo su, I don't need to keep retyping sudo to do admin actions until I change the user?
yes, this is correct.