LOGNAME(1) General Commands Manual LOGNAME(1)

lognameprint user's login name

logname

logname prints the user's login name. Should be equivalent to id -un.

The logname utility exits 0 on success, and >0 if an error occurs.

getlogin(3)

logname should be compliant with the IEEE Std 1003.1-2024 (“POSIX.1”) specification.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

2024-03-27 Linux 6.6.67-gentoo-x86_64