Commands Library

Browse, search, copy, and open common network troubleshooting commands.

ping
BeginnerConnectivity

Test connectivity to a device or website.

WindowsmacOSLinux
nslookup
BeginnerDNS

Query DNS records and troubleshoot DNS issues.

WindowsmacOSLinux
ipconfig
BeginnerDHCP

Display IP configuration.

Windows
ifconfig
BeginnerDHCP

Display network interface details.

macOSLinux
tracert
IntermediateRouting

Trace packet path on Windows.

Windows
traceroute
IntermediateRouting

Trace packet path on macOS and Linux.

macOSLinux
arp -a
IntermediateLayer 2

View the ARP table.

WindowsmacOSLinux
netstat
IntermediateConnections

Display active network connections.

WindowsmacOSLinux
netstat -an
IntermediateConnections

Display all active network connections with numeric addresses.

WindowsmacOSLinux
netstat -r
AdvancedRouting

Display the routing table.

WindowsmacOSLinux
netstat -b
AdvancedConnections

Display the executable responsible for each connection.

Windows
ipconfig /all
BeginnerDHCP

Display detailed information about all network interfaces.

Windows
ipconfig /renew
IntermediateDHCP

Request a new IP address from the DHCP server.

Windows
ipconfig /release
AdvancedDHCP

Release the current DHCP IP address.

Windows
ipconfig /flushdns
IntermediateDNS

Clear the Windows DNS resolver cache.

Windows
ipconfig getifaddr en0
BeginnerDHCP

Show the IP address of a macOS interface.

macOS
ipconfig getpacket en0
IntermediateDHCP

Display macOS DHCP lease information.

macOS
networksetup -listallhardwareports
IntermediateConnections

List macOS network adapters and device names.

macOS
scutil --dns
IntermediateDNS

Display macOS DNS configuration.

macOS
sudo dscacheutil -flushcache
AdvancedDNS

Flush the DNS cache on macOS.

macOS
curl -I
IntermediateConfiguration

Check website response headers.

macOSWindowsLinux
networkquality
BeginnerConnectivity

Runs a quick internet speed test through terminal.

macOSWindows
networkquality -v
BeginnerConnectivity

Run this command for detailed statistics on internet speed

WindowsmacOS
netstat -nr
IntermediateConnections

Displays the system's routing table and network gateway information.

macOSWindows
ipconfig getoption en0 domain_name_server
BeginnerDNS

Display's gateway DNS server

macOS