ping <host>Sends echo requests until Ctrl-C and reports latency and loss.
Example
ping example.comSends ICMP echo requests to test reachability and measure round-trip time.
sudo apt install iputils-pingping <host>Sends echo requests until Ctrl-C and reports latency and loss.
Example
ping example.comping -c <n> <host>Stops after n packets — what you want in scripts.
Example
ping -c 4 192.168.1.1ping -i <seconds> <host>Changes the interval; below 0.2 s needs root.
Example
ping -i 0.2 10.0.0.5ping -W <seconds> -c 1 <host>Waits at most n seconds for a reply.
Example
ping -W 1 -c 1 10.0.0.5ping -q -c <n> <host>Prints only the summary.
Example
ping -q -c 20 1.1.1.1ping -6 <host>Forces IPv6.
Example
ping -6 google.comping -s <bytes> <host>Sets payload size. With -M do (do not fragment) this finds the path MTU: 1472 + 28 bytes of headers = 1500.
Example
ping -s 1472 -M do 10.0.0.1ping -D <host>Prints a timestamp before each line.
ping -c 1 <host>Reads the TTL in the reply to guess the OS: about 64 for Linux and macOS, 128 for Windows, 255 for network gear.
Example
ping -c 1 10.10.10.5ping -b <broadcast>Pings a broadcast address; most modern hosts ignore it.
Example
ping -b 192.168.1.255for i in $(seq 1 254); do ping -c1 -W1 <prefix>.$i | grep "bytes from" & done; waitA quick ping sweep with nothing but bash — useful on a foothold without nmap.
Example
for i in $(seq 1 254); do ping -c1 -W1 192.168.1.$i | grep "bytes from" & done; waitPings many hosts in parallel and reports which are alive — a faster, script-friendly alternative to looping over ping.
The iproute2 tool for addresses, links, routes, neighbours and network namespaces — the modern replacement for ifconfig and route.
A packet crafter for TCP, UDP and ICMP: test firewall rules, perform idle scans, trace paths with custom packets and measure latency.
Measures maximum TCP and UDP throughput between two hosts — the standard tool for testing network bandwidth and link quality.