HP-UX Reference (11i v2 04/09) - 1 User Commands N-Z (vol 2)
w
whoami(1) whoami(1)
NAME
whoami - print effective current user id
SYNOPSIS
whoami
DESCRIPTION
whoami prints your current user name, even if you have used
su to change it since your initial login
(see su(1)). The command
who am i
reports your initial login name because it uses /etc/utmp.
FILES
/etc/passwd name data base
AUTHOR
whoami was developed by the University of California, Berkeley.
SEE ALSO
who(1).
HP-UX 11i Version 2: September 2004 − 1 − Hewlett-Packard Company Section 1−−1015