WHOAMI(1) — USER COMMANDS
NAME
whoami − display effective current username
SYNOPSIS
whoami
DESCRIPTION
Whoami displays the username of whoever is currently logged in. Whoami works even if you are logged in as the super-user, while ‘who am i’ does not since it gets its information from the /etc/utmp file.
FILES
/etc/passwdusername data base
SEE ALSO
Sun Release 1.1 — Last change: 27 April 1983