.Dd October 13, 2016 .Dt LOGNAME 1 .Os .Sh NAME .Nm logname .Nd print login name .Sh SYNOPSIS .Nm .Sh DESCRIPTION .Nm prints the login name of the session. .Sh EXIT STATUS .Nm will exit with 0 on success and non-zero otherwise. .Sh SEE ALSO .Xr id 1 , .Xr getlogin 3