The whoami command
[root@academy ~]# whoami
root
[root@academy ~]#Syntax:
whoami [-OPTION][root@academy ~]# whoami --help
Usage: whoami [OPTION]...
Print the user name associated with the current effective user ID.
Same as id -un.
--help display this help and exit
--version output version information and exit
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
For complete documentation, run: info coreutils 'whoami invocation'
[root@academy ~]#Last updated