logname

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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 executing the command. It corresponds to the LOGNAME variable in the system-state environment. The logname system call and command appeared for the first time in UNIX System III.

$ 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


Retrieved from "https://en.wikipedia.org/w/index.php?title=Logname&oldid=801417286"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Logname
This page is based on the copyrighted Wikipedia article "logname"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA