logname

In computer software, logname (stands for Login Name) 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.

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.

[1] The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.

[2] This Unix-related article is a stub.