WHOAMI(1)

NAME
whoami - display the effective current username

SYNOPSIS
whoami

DESCRIPTION
Whoami prints the user name associated with its effective user id. If invoked after su(1), the newly assumed name is printed, instead of the name previously used for logging in.

SEE ALSO
id(1), who(1)