Which Linux command lets a permitted user run a command as the superuser or another user?

sudo runs a command as the superuser or another user.

Start playing free

  1. ls
  2. sudo ✔
  3. pwd

Why: sudo checks a security policy to decide who may run which commands as root or another user. Using it only when needed keeps everyday work in a normal account.

Huh, didn't know that: sudo can also edit files as another user with sudoedit.

The dad joke
sudo make me a sandwich. What? Make it yourself. sudo make me a sandwich. Okay.
Like this card?
Play the game

References

Answer: sudo. sudo checks a security policy to decide who may run which commands as root or another user. Using it only when needed keeps everyday work in a normal account.

  1. sudo(8), Debian manpages manpages.debian.org/bookworm/sudo/sudo.8.en.html
    execute a command as the superuser or another user
    Checked 2026-10-11.
  2. sudo(8), Debian manpages manpages.debian.org/bookworm/sudo/sudo.8.en.html
    configured via the file /etc/sudoers
    Checked 2026-10-11.
  3. sudo(8), Debian manpages manpages.debian.org/bookworm/sudo/sudo.8.en.html
    Edit one or more files instead of running a command.
    Checked 2026-10-11.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game