logname(1) logname(1)NAME logname - get login name SYNOPSIS logname DESCRIPTION logname returns the contents of the environment variable $LOGNAME, which is set when a user logs into the system. EXAMPLES logname displays the $LOGNAME of the user logged into the system on the current port. FILES /bin/logname /etc/profile SEE ALSO env(1), login(1), printenv(1), logname(3X), environ(5). April, 1990 1