Reference
Networking cheat sheets
One page per topic, made to print or keep open. Every line comes from the command's own page, where it is explained with real output, and from the labs that run it.
- ip command cheat sheet The Linux ip command on one page: addresses, cards, routes, neighbours and routing rules.
- dig cheat sheet: DNS lookups DNS lookups from the command line: dig first, then nslookup, getent and delv.
- tcpdump cheat sheet Packet capture on one page: tcpdump's options and filters, then tshark.
- nmap cheat sheet Scanning on one page: nmap's host discovery, port scans and service detection, then nping.
- iptables and nftables cheat sheet Linux firewall and NAT rules on one page: iptables, nft and conntrack.
- ss, nc and curl cheat sheet Ports and connections on one page: what is listening (ss), talking to a port by hand (nc), and HTTP requests (curl).
- Network troubleshooting commands cheat sheet The commands for finding a network fault, in the order to run them: the card and its address, the route, the neighbour, the path, the name, the port.
- ssh, scp and sftp cheat sheet Remote login and file copies on one page: ssh, scp and sftp.
- Subnetting cheat sheet Every IPv4 prefix length with its mask, wildcard mask, number of addresses and usable hosts.
- Common ports cheat sheet The well-known TCP and UDP ports in one table, each linked to what runs on it.