|
Article on other languages:
|
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 command id -un. On Unix-like operating systems, the output of the command is slightly different from 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].
ExampleIf you're logged in as root simply type # whoami root or if you're logged in as the user baldur the computer prints: # whoami baldur It's also possible to add # whoami --help If # whoami --version whoami (GNU coreutils) 6.10 Copyright © 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Richard Mlynarik. See alsoReferencesExternal links
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net