WHOAMI(1) — Unix Programmer’s Manual
NAME
whoami − print effective current user id
SYNOPSIS
whoami
DESCRIPTION
Whoami prints your true user name. It works even if you are su’d onto another account. The who command who am i does not work in this condition because it gets its information from /etc/utmp.
FILES
/etc/passwdName data base
SEE ALSO
3rd Berkeley Distribution — April 29, 1985