gping(1)
gping is a ping utility with a real-time graphical display showing response times over time.
Synopsis
gping [OPTIONS] [--] <hosts>...Description
gping is a ping tool that visualizes ping latency in real-time using a terminal graph. It pings one or more hosts and displays the response times as an animated chart, making it easy to spot latency spikes and patterns. It supports both IPv4 and IPv6 addresses and hostnames.
The graph updates in real-time, showing the last ~30-40 ping results depending on terminal width. It's useful for monitoring network quality, diagnosing connection issues, and comparing latency across multiple hosts simultaneously.
Common options
| Flag | What it does |
|---|---|
-c, --count <COUNT> | Stop after sending COUNT echo requests (default: infinite until Ctrl+C) |
-i, --interval <INTERVAL> | Wait INTERVAL seconds between pings (default: 0.5) |
-w, --timeout <TIMEOUT> | Timeout in seconds for each ping request (default: 5) |
--watch | Watch mode for DNS changes; re-resolves target addresses periodically |
-n, --no-rdns | Disable reverse DNS lookups for IPv4 addresses |
-4 | Force IPv4 only |
-6 | Force IPv6 only |
-b, --buffer <BUFFER> | Number of ping results to display in the graph (default: 30) |
--stats | Display statistics instead of a graph |
Examples
Ping google.com and show real-time latency graph
gping google.comPing multiple DNS servers simultaneously with separate graphs
gping 8.8.8.8 1.1.1.1 8.8.4.4Ping example.com exactly 20 times then exit
gping -c 20 example.comPing gateway with 1-second interval and 2-second timeout
gping -i 1 -w 2 192.168.1.1Watch DNS changes for a hostname and update the graph accordingly
gping --watch hostname.example.comForce IPv4 and skip reverse DNS lookups
gping -4 -n google.comShow statistics view (min/max/avg/loss) instead of graph
gping --stats 8.8.8.8