Home /Linux /Linux whoami command Linux whoami command by Souy Soeng /February 19, 2022 Share Facebook Twitter WhatsApp Telegram Email Linux whoami commandLinux whoami command is used to get the current logged-in username. This command is most helpful with Shell scripting to find if the current user is root or not.Example:$ whoami Output:rahul Tag Linux