whoami(1)
NAME
whoami − print effective current user id
SYNTAX
whoami
DESCRIPTION
The whoami command prints who you are. It works even if you have established another user ID, while “who am i” does not since it uses /etc/utmp.
FILES
/etc/passwd
whoami − print effective current user id
whoami
The whoami command prints who you are. It works even if you have established another user ID, while “who am i” does not since it uses /etc/utmp.
/etc/passwd