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 {{[-e|--edit]}} {{/etc/fstab}}

sudo {{[-u|--user]}} {{user}} {{[-g|--group]}} {{group}} {{id -a}}

sudo !!

sudo {{[-i|--login]}}

sudo {{[-s|--shell]}}

sudo {{[-i|--login]}} {{[-u|--user]}} {{user}}

sudo {{[-l|--list]}}