You are here: >

Linux and Unix logname command

logname commandAbout logname
logname syntax
logname examples
Related commands
Linux and Unix main page

About logname

Prints the login name of the current user.

logname syntax

logname [OPTION]


--help Display a help message, and exit.
--version Display version information and exit.

logname examples


Returns the name of the currently logged in user.

env — Report the value of environment variables.
login — Begin a session on a system.