Print the current user id and name. Same as id -un.

      whoami [options]

   --help      Display Help
   --version   Display program version info

The whoami utility has been obsoleted by the id(1) utility, and is equivalent to 'id -un'.
The command id -p is suggested for normal interactive use.

The whoami utility displays your effective user ID as a name.

"He travels the fastest who travels alone" ~ Rudyard Kipling

Related linux commands

id - Print user and group ids'
who - Print all usernames currently logged in.
Equivalent Windows command: %username%

Copyright © 1999-2024 SS64.com
Some rights reserved