WHOAMI(1) — UNIX Programmer’s Manual
NAME
whoami − print effective current user id
SYNOPSIS
whoami
DESCRIPTION
Whoami 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
who (1)
3BSD