su
//
The command “su” stands for “switch user”. And it does just that, it switches users.
When it used without parameters, we are specifying to switch to the user root. However, we can use the su command to switch shell to any user account that we know the password of. In the first example, we are logged in as the user Bob and we are switching to user Pat.
[Bob@host Bob]$ su Pat
Password:
[ali@esx1host kevin]
In this second example, we are switching from being logged...


Posted in
Tags: