logname
The logname command displays the login name of the current process. This is the name that the user logged in with and corresponds to the LOGNAME variable in the system-state environment. This variable is only set when the user logs into the system.
Access Control: This program is installed as a normal user program in the Trusted Computing Base.
This command returns the following exit values:
0 | Successful completion. |
>0 | An error occurred. |
To display your login name to standard output, enter:
logname
/usr/bin/logname | Contains the logname command. |
The getty command, the login command, the setgroups command, the setsenv command, the su command, the tsm command.