Print the username associated with the current effective user ID.
whoamiLINUX COMMAND ATLAS · COMMAND GUIDE
Print the username associated with the current effective user ID.
GNU Coreutilswhoami [OPTION]...
Print the username associated with the current effective user ID.
whoamiShow which user an elevated command would run as.
sudo whoamiwhoami prints the effective user name; it does not necessarily identify the person at the keyboard.