Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

logname

From Wikipedia, the free encyclopedia
Standard UNIX utility
logname
example oflogname command
Initial release1982; 43 years ago (1982)
Operating systemUnix andUnix-like
PlatformCross-platform
TypeCommand
LicenseGNU GPL v3

Incomputer software,logname (stands forLogin Name) is a program inUnix andUnix-likeoperating 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]

Thelognamesystem call and command appeared for the first time inUNIX System III. The author of the version oflogname bundled inGNUcoreutils is unknown.[1] The command is available as a separate package forMicrosoft Windows as part of theUnxUtils collection ofnativeWin32ports of common GNU Unix-like utilities.[2]

Usage

[edit]
$logname--helpUsage: 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]
  1. ^"Logname(1): Print user's login name - Linux man page".
  2. ^"Native Win32 ports of some GNU utilities".unxutils.sourceforge.net.

External links

[edit]
The WikibookGuide to Unix has a page on the topic of:Commands
File system
Processes
User environment
Text processing
Shell builtins
Searching
Documentation
Software development
Miscellaneous
File system
Text utilities
Shell utilities
Stub icon

ThisUnix-related article is astub. You can help Wikipedia byexpanding it.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Logname&oldid=1266634743"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp