logname - display user's login name
The logname utility writes the user's login name to standard
by a newline (`0).
The logname utility explicitly ignores the LOGNAME and USER
variables because the environment cannot be trusted.
The logname utility exits 0 on success or >0 if an error occurred.
who(1), whoami(1), getlogin(2)
The logname utility conforms to IEEE Std 1003.2-1992
The logname command appeared in 4.4BSD.
OpenBSD 3.6 June 9, 1993
[ Back ]