Skip to content

Instantly share code, notes, and snippets.

View miguelPerezOntiveros's full-sized avatar

José Miguel Pérez Ontiveros miguelPerezOntiveros

View GitHub Profile

Linux tools talk

http://man7.org

Sudo vs su

sudo runs a single command with root permissions.
su switches user to it's first argument (defaults to root).
su -c whoami would have the same output as sudo whoami, but they use different auth mechanisms.
The sudoers file at /etc/sudoers should be edited using visudo.

dig, host and nslookup

Prefer dig as nslookup is deprecated.