Logname: Difference between revisions
Appearance
Content deleted Content added
Changed "Logon" to "Login" to be more consistent with the man page and normal unix terminology |
|||
Line 1: | Line 1: | ||
{{lowercase|title=logname}} |
{{lowercase|title=logname}} |
||
In [[computer software]], '''logname''' (stands for ''' |
In [[computer software]], '''logname''' (stands for '''Login Name''') is a program in [[Unix]] and [[Unix-like]] [[operating system]]s that prints the name of the user executing the [[command (computing)|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]]. |
||
<pre>Usage: logname |
<pre>Usage: logname |
Revision as of 08:47, 28 July 2010
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.
Usage: logname Print the name of the current user.
See also
References
- The Single UNIX Specification, Version 4 from The Open Group : return the user's login name – Shell and Utilities Reference,