WHOAMI(1) — UNIX Programmer’s Manual
NAME
whoami − print effective current user id
SYNOPSIS
whoami
DESCRIPTION
Whoami prints who you are, the name you logged in under originally. It works even if you are using a substitute ID with su, while ’who am i’ does not, since it uses /etc/utmp.
EXAMPLE
whoami
might reply:
unisoft
FILES
/etc/passwdUser data base
SEE ALSO
who (1)
7th Edition — 1/27/82