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. It usually corresponds to the LOGNAME variable in the system-state environment (but this variable could have been modified).
![]() example of logname command | |
Initial release | 1982 |
---|---|
Operating system | Unix and Unix-like |
Type | Command |
License | GNU GPL v3 |
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
gollark: An entire day's work, ignoring any other expense you might have.
gollark: $60 is quite a lot by my standards.
gollark: You would, at least, mildly worsen prospects for developing another game.
gollark: Idea: start making a game now, then wait 20 years and actually do any of the work, so I can claim I worked on it for 20 years.
gollark: You could use that to argue that if you, say, start up a competing brick company and drop the market price of bricks, you are stealing from other brick companies.
See also
References
External links
![]() |
The Wikibook Guide to Unix has a page on the topic of: Commands |
- : return the user's login name – Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.