manpagez: man pages & more
info coreutils
Home | html | info | man

File: coreutils.info,  Node: whoami invocation,  Next: groups invocation,  Prev: logname invocation,  Up: User information

20.3 ‘whoami’: Print effective user name
========================================

‘whoami’ prints the user name associated with the current effective user
ID.  It is equivalent to the command ‘id -un’.

   The only options are ‘--help’ and ‘--version’.  *Note Common
options::.

   An exit status of zero indicates success, and a nonzero value
indicates failure.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.