logname(1) DG/UX R4.11MU05 logname(1)
NAME
logname - return user's login name
SYNOPSIS
logname
DESCRIPTION
The logname command will write the user's login name to standard
output.
EXAMPLES
$ logname
billcat
Returns the name of the user as known by the system at login time.
$ logname > lognm
$ cat lognm
billcat
Puts the user name in the new file lognm and displays the contents of
lognm.
FILES
/etc/profile.
SEE ALSO
env(1), id(1), login(1).
logname(3X), environ(5)
NOTES
The logname command explicitly ignores the LOGNAME environment
variable because environment changes could produce erroneous results.
Licensed material--property of copyright holder(s)