← 返回命令列表

Linux command

gping 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Ping a host with graph

gping [example.com]

Ping multiple hosts

gping [example.com] [google.com] [cloudflare.com]

Ping with custom interval

gping -i [0.5] [example.com]

Execute command and graph results

gping --cmd "[curl -so /dev/null -w '%{time_total}' example.com]"

Ping with custom buffer size

gping -b [100] [example.com]

Force IPv4

gping -4 [example.com]

Set graph color

gping --color [blue] [example.com]

Use simple graphics mode

gping -s [example.com]

说明

gping is a graphical ping tool that displays latency as a live updating graph in the terminal. Multiple hosts can be pinged simultaneously, each displayed with different colors for easy comparison. The --cmd option executes arbitrary commands and graphs their numeric output, useful for graphing any time-series metric like response times or resource usage. Simple graphics mode (-s) uses basic characters for terminals lacking Unicode braille support.

参数

-i, --interval _seconds_
Ping interval. Default: 0.2.
-b, --buffer _size_
Number of data points in graph. Default: 300.
-n, --watch-interval _seconds_
Interval for command execution graph.
-s, --simple-graphics
Use dot character instead of braille.
--vertical-margin _lines_
Vertical margin above graph.
--horizontal-margin _cols_
Horizontal margin beside graph.
-c, --color _color_
Graph line color (repeatable).
-4
Force IPv4.
-6
Force IPv6.
--cmd _command_
Execute command and graph output as float.
-h, --help
Display help information.
-V, --version
Display version information.

FAQ

What is the gping command used for?

gping is a graphical ping tool that displays latency as a live updating graph in the terminal. Multiple hosts can be pinged simultaneously, each displayed with different colors for easy comparison. The --cmd option executes arbitrary commands and graphs their numeric output, useful for graphing any time-series metric like response times or resource usage. Simple graphics mode (-s) uses basic characters for terminals lacking Unicode braille support.

How do I run a basic gping example?

Run `gping [example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --interval _seconds_ do in gping?

Ping interval. Default: 0.2.