whoami(1)
NAME
whoami − print your current login name
SYNTAX
whoami
DESCRIPTION
The whoami command prints who you are. It works even if you are su’d, while ‘who am i’ does not since it uses /etc/utmp.
FILES
/etc/passwdName data base
SEE ALSO
Commands