Print current login name
SYNTAX
logname
Prints the calling user&qt;&qt;s name, as found in the file&qt;/var/run/utmp&qt;&qt;, and exits with a status of 0.
If there is no &qt;/var/run/utmp&qt;&qt; entry for the calling process, &qt;logname&qt;&qt; prints an error message and exits with a status of 1.
The only options are &qt;–help&qt;&qt; and &qt;–version&qt;&qt;.