logname(1) DG/UX 5.4.2 logname(1)
NAME
logname - get login name
SYNOPSIS
logname
DESCRIPTION
Logname returns the contents of the environment variable $LOGNAME,
the name under which you logged in. It is set when you log into the
system, but can be reset. It is simply an environment variable; it
does not affect the system's knowledge of you through your effective
user ID.
EXAMPLES
$ logname
billcat
Returns the name of the user as known by the system at login time.
If $LOGNAME (the shell variable) is not defined logname will still
function.
$ 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)
Licensed material--property of copyright holder(s) 1