GNU Info

Info Node: (sh-utils.info)logname invocation

(sh-utils.info)logname invocation


Next: whoami invocation Prev: id invocation Up: User information
Enter node , (file) or (file)node

`logname': Print current login name
===================================

   `logname' prints the calling user's name, as found in the file
`/var/run/utmp', and exits with a status of 0.  If there is no
`/var/run/utmp' 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
options.


automatically generated by info2www version 1.2.2.9