It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
who am i
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 command is also available as part of the Windows 2000 Resource Kit[1] and Windows XP SP2 Support Tools.
Posted on May 31st, 2014
Comments
(Related Products
▼ Sponsored Links ▼
▲ Sponsored Links ▲
▲ Sponsored Links ▲