whoami - print effective current user id
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.
/etc/passwd name data base
whoami was developed by the University of California, Berkeley.
Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000