Logname
In computer software, logname is a program in Unix and Unix-like operating systems that prints the name of the user who is currently logged in on the terminal. It usually corresponds to the LOGNAME variable in the system-state environment.History
The logname system call and command appeared for the first time in UNIX System III. The author of the version of logname
bundled in GNU coreutils is unknown.Usage
$ logname --help
Usage: logname
Print the name of the current user.
--help display this help and exit
--version output version information and exit