$LOGNAME  –  Current login name

$LOGNAME contains the login name of the current login session. If $LOGNAME is not set in the environment of the shell, it’s initialized to the string returned by the getlogin(3) system call if available.

BashSupport Pro is a Zsh IDE with support for $LOGNAME – try it now!
© 2020–2026 Joachim Ansorg
Imprint
Privacy Policy
Legal