Who
From FreeBSDwiki
who (also with the arguments "am i" or "mom likes" on some systems) shows you what username you logged in as. Compare to whoami, which shows you what user the system thinks you currently are.
samizdata# whoami root samizdata# who am i dave ttyp0 Oct 6 14:21 (10.67.1.108)