whoami(1)
Name
whoami − print your current login name
Syntax
whoami
Description
The whoami command prints who you are. It works even if you are su’d, while ‘who am i’ does not since it uses /etc/utmp.
Files
/etc/passwdName data base
whoami − print your current login name
whoami
The whoami command prints who you are. It works even if you are su’d, while ‘who am i’ does not since it uses /etc/utmp.
/etc/passwdName data base