logname(1) DG/UX 4.30 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), login(1).
logname(3X), environ(5) in the Programmer's Reference for
the DG/UX System
Licensed material--property of copyright holder(s) Page 1