Skip to content

gping - Ping with a Live Graph Cheatsheet

gping - Ping with a Live Graph Cheatsheet

gping is a Rust CLI that replaces the wall of scrolling text from ping with a live, scrolling latency graph in your terminal. It can plot several hosts on the same chart for easy comparison, and can even graph the execution time of an arbitrary command over repeated runs. It runs on Linux, macOS, and Windows.

Installation

PlatformCommand
Cargo (all platforms)cargo install gping
macOS (Homebrew)brew install gping
Arch Linuxsudo pacman -S gping
Debian/Ubuntu (repo)sudo apt install gping
Fedorasudo dnf install gping
Windows (Scoop)scoop install gping
Windows (Choco)choco install gping
Nixnix-env -iA nixpkgs.gping

Basic Usage

CommandDescription
gping example.comLive latency graph for one host
gping 1.1.1.1 8.8.8.8Plot multiple hosts on one graph
gping google.com cloudflare.comCompare two providers side by side
gping --helpShow all options
gping --versionVersion

Key Options

OptionDescription
-n, --watch-interval SECSSeconds between pings (e.g. 0.5 for faster sampling)
-b, --buffer NNumber of points to keep on screen
-4Force IPv4
-6Force IPv6
--simple-graphicsUse ASCII instead of Braille (better on limited terminals)
-i, --interface NAMEPing from a specific network interface
-c, --clearClear the screen before starting
--color COLORSet a line color for the host

Graphing a Command

gping can chart how long a command takes across repeated executions — useful for spotting variance or flaky latency.

CommandDescription
gping --cmd "curl -s https://example.com"Graph the run time of a command
gping --cmd "ping -c1 1.1.1.1"Wrap another command and chart it

Interactive Keys

KeyAction
q / Ctrl+CQuit
Resize terminalGraph rescales automatically

Common Workflows

# Is it my Wi-Fi or the site? Compare the gateway vs a public resolver
gping 192.168.1.1 1.1.1.1

# High-resolution sampling during a video call to spot jitter
gping -n 0.2 8.8.8.8

# Compare two CDNs head to head
gping cloudflare.com fastly.com

# Plot how long a health-check curl takes over time
gping --cmd "curl -so /dev/null -w '%{time_total}' https://example.com"

gping vs Other Ping Tools

ToolOutputNotes
gpingLive graphMulti-host, Rust, cross-platform
pingScrolling textUniversal baseline
prettypingInline sparklineWraps ping, single host
mtrPer-hop tableTraceroute + ping combined

Resources