linux-cheatsheet

A cheatsheet with common linux commands and tools

View on GitHub

Networking

ARP

On Linux, the ARP table can be displayed with arp. Entries can be deleted with sudo arp -d <address>. Use sudo arp -a to get system info.

IP configuration

Routing

netstat

netstat -tupna or ss -stpluna:

Can be used with watch <command>.

DNS

TShark

Use grep [-B <lines_before>] [-A <lines-after>] "<search>" as a filter.

Other



This cheatsheet was created by Rafael Urben. Found a mistake? Feel free to create a PR or open an issue on GitHub!