We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Whoami and sudo

The whoami command prints the user you're currently logged in as. When you run a command with sudo, it runs as the root superuser instead.

Assignment

  1. whoami
    
  2. sudo whoami
    
  3. for Linux/Mac Users

    On some Linux systems your user might not be configured for sudo access by default. If sudo whoami fails with a permission or authentication error, your account may not have superuser privileges.

    for Windows/WSL Users

    If you're using WSL, make sure to use the password you set for your Linux distribution, not your Windows password.

Copy and paste the output of the last command into the input box and submit your answer.