Reference

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 384 across 26 tools. Pick a tool in the sidebar, or search across all of them.

Network Diagnostics

Diagnose connectivity, DNS, ports, and routes from the terminal.
CommandWhat it doesExample
pingIs the host reachable?ping -c 4 google.com
digDNS lookup.dig example.com
dig +shortDNS lookup, answer only.dig +short example.com
dig MXLook up mail records.dig MX example.com
nslookupDNS lookup (the classic).nslookup example.com
tracerouteShow the network path to a host.traceroute google.com
curl -ICheck an HTTP endpoint’s headers.curl -I https://example.com
ss -tulpnListening ports and the PIDs behind them.ss -tulpn
lsof -i :PORTWhat process is using a port.lsof -i :3000
nc -zvTest whether a remote port is open.nc -zv example.com 443
ip aShow your network interfaces / IPs.ip a
ip routeShow the routing table.ip route
whoisDomain registration details.whois example.com