Displays the active username (e.g., root or john_doe ). How to "Download" and Install whoami

Displays the domain and user name (e.g., DOMAIN\User ).

whoami is part of the coreutils package, which is pre-installed on almost every Linux system. Open your terminal and type whoami . Reinstall if missing: Ubuntu/Debian: sudo apt-get install coreutils . CentOS/RHEL: sudo yum install coreutils . 2. Windows Systems