Logon On As Different User In Linux In Same Terminal Window

April 20, 2009 · Posted in Unix 

In Unix, how do I quickly changing users on Linux without having to logout while you are using bash or any other command line interface.

The su command

Using the su command we can quickly change users in a bash terminal for that type the following command;

su – username

To login as a root user

su -s

Comments

Leave a Reply