This tutorial explains Linux “whoami” command, options and its usage with examples.
whoami is used to print effective userid.
It prints the user name associated with the current effective user ID. Same as id -un command.
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.