Ubuntu Terminal: How to Switch to a Different User Account
Working in the terminal is sometimes like scratching around in the dark as a blind man. You think you have achieved something but you can’t see whether or not you actually did. So it is pretty useful sometimes to be able to quickly switch users and check if your changes actually works.
Of course, this is pretty simple if you know the command to do this (which I didn’t and had to look up – thus this quickfire blog post!)
To quickly switch users, enter:
Where username is the user account you wish to switch to. You will be prompted for that account’s password, and if entered in correctly, you’ll be switched over to that user account.