Ping Device Command
ping (on Windows, Linux & macOS)
The ping command tests network connectivity by sending Internet Control Message Protocol (ICMP) echo requests and the output shows packet loss and latency.
Trace Route Command
tracert (on Windows)
traceroute (on Linux & macOS)
A tool that shows the path packets take to a destination. Shows how many hops.
Path Ping Command
pathping (on Windows)
Combines ping and tracert by measuring packet loss at each hop. Linux and macOS do not include pathping, but similar functionality can be achieved using ping + traceroute or mtr.
Lookup DNS Server Info Command
nslookup (on Windows)
dig (on Linux & macOS)
Used to query Domain Name System (DNS) servers. Provides detailed DNS query output; dig is considered the advanced version of nslookup.
Packet Capture Command
WinDump (on Windows)
tcpdump (on Linux & macOS)
Captures packets from the command line, functioning as a text-based alternative to Wireshark.
Network Statistics Command
netstat (on Windows, Linux & macOS)
Displays active connections and ports.
netstat -a shows all connections
netstat -b shows executable names (Windows only)
netstat -n displays numerical IPs instead of names. Works on Windows, Linux, and macOS.
IP Configuration Command
ipconfig (on Windows)
ifconfig or ip address (on Linux & macOS)
Shows and manages IP settings.
Address Resolution Protocol Command
arp -a (on Windows, Linux & macOS)
Displays the Address Resolution Protocol (ARP) cache, showing mappings of IP addresses to Media Access Control (MAC) addresses.