whoami command in Linux is used to display the name of the currently logged-in user in a shell. It displays the user name associated with the current effective user ID.
Uses of whoami command with example
To get help about whoami command and find available options for whoami command, use
whoami --help command.
Display current version
To display the currently installed version of the whoami command use whoami –version command.
Using whoami command
Linux command with examples
date | dd | df | diff | dir | dmidecode | du
echo | eject | env | exit | expr
grep | groups | gunzip | gzip
kill | kmod
man | mdsum | mkdir | more| mv
passwd | pidof | ping | pr | ps | pwd | pstree
rdiff-backup | reboot | rename | rm | rmdir
tac | tail | talk | tar | tee | time | tree | top | touch | tr
unalias | uname | uniq | unzip | uptime | users
vim | vi
yes | youtube-dl
zcmp | zdiff | zip | zz