HP-UX Reference (11i v3 07/02) - 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).
418 Hewlett-Packard Company 1 HP-UX 11i Version 3: February 2007