Man Pages

logname - phpMan logname - phpMan

Command: man perldoc info search(apropos)  

File:,  Node: logname invocation,  Next: whoami invocation,  Prev: id invocation,  Up: User information

20.2 `logname': Print current login name

`logname' prints the calling user's name, as found in a
system-maintained file (often `/var/run/utmp' or `/var/run/utmp'), and
exits with a status of 0.  If there is no entry for the calling
process, `logname' prints an error message and exits with a status of 1.

   The only options are `--help' and `--version'.  *Note Common

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