Jump to content
Wikipedia The Free Encyclopedia

logname

From Wikipedia, the free encyclopedia
Standard UNIX utility
logname
example of logname command
Initial release1982; 43 years ago (1982)
Operating system Unix and Unix-like
Platform Cross-platform
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

[edit ]

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]

Usage

[edit ]
$ 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

[edit ]

References

[edit ]
[edit ]
The Wikibook Guide to Unix has a page on the topic of: Commands
Stub icon

This Unix-related article is a stub. You can help Wikipedia by expanding it.

AltStyle によって変換されたページ (->オリジナル) /