I'd like to log in as a different user without logging out of the current one (on the same terminal). How do I do that?
How about using the
If you want to log in as root, there's no need to specify username:
Generally, you can use
There are more circuitous ways if you don't have sudo access, like ssh username@localhost, but
Generally you use
There are more circuitous ways if you don't have sudo access, like