WHOAMI(1) BSD Reference Manual WHOAMI(1)
NAME
whoami - print effective current user id
SYNOPSIS
whoami
DESCRIPTION
Whoami prints your effective user id. It works even if you are su'd,
while ``who am i'' does not since it uses /var/run/utmp.
FILES
/etc/passwd Name data base
SEE ALSO
who(1)
HISTORY
The whoami command appeared in 3.0BSD.
3rd Berkeley Distribution March 27, 1993 1