Search: in
Whoami (command)
Whoami (command) Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
Whoami (command) Email this to a friend      Whoami (command)

Whoami (command)

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.

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].

Contents


Example

# whoami
root

See also

References

External links

de:Whoami pl:Whoami ru:Whoami





Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Related Links in Whoami (command)

Search for Whoami (command) in Tutorials
Search for Whoami (command) in Encyclopedia
Search for Whoami (command) in Dictionary
Search for Whoami (command) in Open Directory
Search for Whoami (command) in Store
Search for Whoami (command) in PriceGig



Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

Advertisement

Advertisement



Whoami (command)
Whoami (command) top Whoami (command)

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement