.Dd 2020-10-09 .Dt LOGNAME 1 .Os HitchHiker linux .Sh NAME .Nm logname .Nd display current user's login name .Sh SYNOPSIS .Nm .Sh DESCRIPTION .Nm logname .Nd print the current user's login name to stdout, while explicitly ignoring the .Ev LOGNAME and .Ev USER environment variables, in case the environment cannot be trusted. .Sh AUTHOR Written by the JeanG3nie for HitchHiker Linux. .Sh EXIT STATUS .Ex -std logname .Sh STANDARDS The .Nm utility is compliant with the .St -p1003.1-2008 specification. .Sh HISTORY The .Nm command appeared in .Bx 4.4 . .Sh SEE ALSO .Xr who 1 , .Xr whoami 1 , .Xr getlogin 2