Name

logname

Synopsis

    logname

Display your login name. The command looks the user up in the system’s database of currently logged in users. It ignores both the LOGNAME and USER environment variables. See also whoami.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.