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).
Hewlett-Packard Company — HP-UX Release 9.0: August 1992