This cheat sheet covers the most essential network troubleshooting commands for Windows, Linux, and macOS. It includes foundational and advanced tools for diagnosing connectivity, routing, DNS, and interface issues. Each entry is research-confirmed and links to authoritative documentation for further learning.
What This Cheat Sheet Covers
This topic spans 2 focused tables and 15 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Foundational Network Troubleshooting Commands
These are the first commands you reach for when something on the network breaks — the everyday toolkit for confirming reachability, walking the route to a host, reading your own interface settings, and resolving names. Most have a Windows form and a Linux/macOS equivalent side by side, so you can move between systems without relearning the basics.
| Command | Example | Description |
|---|---|---|
ping 8.8.8.8ping -c 4 example.com | Send ICMP echo requests to test basic network connectivity. | |
traceroute example.comtracert example.com | Trace the path packets take to a destination, showing each hop. | |
ipconfig /allifconfig -aip addr show | Display or configure network interface parameters. | |
nslookup example.comdig example.com | Query DNS servers for domain name or IP address information. | |
netstat -anss -tuln | Display active network connections, listening ports, and statistics. |