Share on Facebook Share on Twitter Email
Answers.com

Whoami

 
Wikipedia: Whoami

whoami is a command found on most Unix-like operating systems, Windows Vista and Windows Server 2008. It is a concatenation of the words "Who am I?" and prints the effective userid (username) of the current user when invoked. It has the same effect as the Unix command id -un.

On Unix-like operating systems, the output of the command is slightly different from $USER because whoami outputs the username that the user is working under, whereas $USER outputs the username that was used to login. For example, if the user logged in as John and su into root, whoami displays root and echo $USER displays John. This is because the su command does not invoke a login shell by default.

The GNU version was written by Richard Mlynarik and is part of the GNU Core Utilities (coreutils).

The command is also available as part of the Windows 2000 Resource Kit[1] and Windows XP SP2 Support Tools.[2]

See also

References

External links


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 
Learn More
Who Am I? (1998 Action Film)
Who Am I? (disambiguation)
Id (Unix)

What is the use of the whoami command in Linux? Read answer...

Help us answer these
What is the whoami command in Linux?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Whoami" Read more

 

Mentioned in