logname - Man Page

print user´s login name

Examples (TL;DR)

Synopsis

logname [OPTION]

Description

Print the user's login name.

--help

display this help and exit

--version

output version information and exit

Author

Written by David MacKenzie.

Reporting Bugs

Report bugs to: bug-coreutils@gnu.org
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Report any translation bugs to <https://translationproject.org/team/>

See Also

getlogin(3)

Full documentation <https://www.gnu.org/software/coreutils/logname>
or available locally via: info '(coreutils) logname invocation'

Referenced By

getlogin(3), utmp(5).

September 2025 GNU coreutils 9.8