Logon On As Different User In Linux In Same Terminal Window

April 20th, 2009 by @HKw@! | Filed under 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

Share

Leave a Reply

BlogCatalog