About

sudo which is a short for "super user do", is the recommended way to do administrative tasks in Ubuntu. It's usage is more granulated and configurable than it's counterpart su.

This commands allows to:

  • Run an specific command as some user.
  • Execute an interactive shell as some user.
  • Elevate privileges of certain commands.

The sudo binary is included in the sudo package, along other tools as visudo and sudoedit. The first is the recommended way to edit the sudoers file which includes the way sudo behaves, and sudoedit opens the default editor with super user privileges.

This command can be configured using the /etc/sudoers file. It follows a specific syntax so is recommended to always use visudo to prevent errors.

history | show excerpt | excerpt history