coreutils: logname invocation
1
1 20.2 ‘logname’: Print current login name
1 ========================================
1
1 ‘logname’ prints the calling user’s name, as found in a
1 system-maintained file (often ‘/var/run/utmp’ or ‘/etc/utmp’), and exits
1 with a status of 0. If there is no entry for the calling process,
1 ‘logname’ prints an error message and exits with a status of 1.
1
11 The only options are ‘--help’ and ‘--version’. ⇒Common
options.
1
1 An exit status of zero indicates success, and a nonzero value
1 indicates failure.
1