sudo Command Examples

Executes a single command as the superuser or another user. More information: https://www.sudo.ws/sudo.html.

sudo {{less /var/log/syslog}}

sudo --edit {{/etc/fstab}}

sudo --user={{user}} --group={{group}} {{id -a}}

sudo !!

sudo --login

sudo --shell

sudo --login --user={{user}}

sudo --list