Network Commands Cheatsheet

A quick reference for common network diagnostic commands.

Connectivity & Reachability

Command Description
ping [host] Checks if a host is reachable and measures round-trip time.
traceroute [host] Traces the path packets take to a network host.

DNS Information

Command Description
nslookup [domain] Queries DNS servers to find DNS details (e.g., IP address).
dig [domain] A more advanced DNS lookup utility.

File Transfer

Command Description
wget [url] Downloads files from the network.
curl -O [url] A versatile tool to transfer data with URLs.

Network Configuration & Statistics

Command Description
ifconfig Displays or configures network interfaces (deprecated on modern Linux).
ip addr The modern replacement for ifconfig; shows IP addresses and network interface information.
netstat -tulpn Shows active network connections, listening ports, and PIDs.
ss -tulpn The modern replacement for netstat; shows socket statistics.

© 2025 devcortex.ai ・ AI-powered developer tools.