LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   who is? (https://www.linuxquestions.org/questions/linux-newbie-8/who-is-217461/)

marsques 08-14-2004 06:28 AM

who is?
 
a quick one...

i log on as normal user "spoon" and 'su' to do something that requires root privilages... minimalise the terminal window ... to browes the web, do a few other stuff...

i come back to the terminial...

my questions is ... how would i find out as is the terminal still running as root or user "spoon" if i cant remember what user i was working in the terminal window... (is there some kinda command which i can type which would say which user is active in the current terminal window?)

thanks in advance...

mjjzf 08-14-2004 06:44 AM

Well, usually you can tell by the $ or #.
I.e.
Code:

[mjj@localhost mjj]$ su                  <- user
Password:
[root@localhost mjj]#                      <- superuser


XavierP 08-14-2004 07:02 AM

Open a console and type whoami. It's the same command as for Windows.

marsques 08-14-2004 07:03 AM

thanks... tried both... its brilliant...


All times are GMT -5. The time now is 08:32 PM.