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 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). 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


Retrieved from "https://en.wikipedia.org/w/index.php?title=Logname&oldid=856349016"
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