Software:logname
From HandWiki
example of logname command | |
Initial release | 1982 |
---|---|
Operating system | Unix and Unix-like |
Type | Command |
License | GNU GPL v3 |
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. It usually corresponds to the LOGNAME variable in the system-state environment (but this variable could have been modified).
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.[1]
Usage
$ logname --help Usage: logname [OPTION] Print the name of the current user. --help display this help and exit --version output version information and exit
See also
References
External links
- The Single UNIX Specification, Issue 7 from The Open Group : return the user's login name – Commands & Utilities Reference,
Original source: https://en.wikipedia.org/wiki/Logname.
Read more |