Quickly test whether a host responds and how long packets take to travel. 21.04.2026 | reading time: 3 min When a host looks unreachable, `ping` is the fastest way to check reachability and measure round-trip time; it sends ICMP echo requests and reports replies, packet loss and timing in an immediate, human-readable form. Ping in action Run `ping -c 4 8.8.8.8` to send four probes and inspect packet loss and round-trip times. Example: ```bash $ ping -c 4 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=14.3 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=13.7 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=118 time=13.5 ms 64 bytes from 8.8.8.8: icmp_seq=4 ttl=118 time=13.9 ms --- 8.8.8.8 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev = 13.534/13.870/14.267/0.287 ms ``` Options that matter Useful switches include `-c` to limit probes, `-i` to set the interval, `-s` to change payload size, `-W` to set a per-packet timeout, `-t` for TTL, `-I` to choose an interface and `-4`/`-6` to force IP version; flooding (`-f`) and very low intervals may require elevated privileges, and `-q` gives a quiet summary suitable for scripts. Where `ping` fits Use `ping` for quick reachability checks, to detect packet loss or asymmetric latency, to verify firewall rules that may block ICMP, and as a simple health check in scripts; remember that ICMP may be deprioritized or filtered in some networks, so a non-response is not always a broken host. Next tools to learn When `ping` shows problems or ambiguous results, move on to tools that map paths and flows: `traceroute` and `mtr` for hop-by-hop latency, `hping3` for custom probes and TCP checks, and `iperf` for throughput testing to complement latency measurements. Keep probing, keep learning Start with `ping`, practice reading the statistics, then expand to path and throughput tools to build a full troubleshooting workflow; for structured learning and exam prep consider pursuing CompTIA Linux+ or LPIC-1 and explore intensive courses at bitsandbytes.academy to prepare for certification. Join Bits & Bytes Academy First class LINUX exam preparation. network utilities troubleshooting