目录
在我们日常测试网络连通性的时候最常用的就是ping,但是ping基于文本形式,缺少可读性,因此强烈推荐一个可视化的工具gping
gping(https://github.com/orf/gping) 目前该项目在github上 已经有6k star:
对比
这是我们普通的文本的ping模式
gping 是基于 Rust 编写可视化工具,具有动态图形化界面显示,可以实时查看网络连通情况:
安装:
mac安装了brew 一条命令即可。
brew install gping
其他系统的话可以下载安装包进行安装
使用方法
安装完成后输入 gping --help 即可查看是否安装成功查看
[root@centos7 gping]# ./gping --help
gping 1.2.6
Ping, but with a graph.
USAGE:
gping [FLAGS] [OPTIONS] <hosts-or-commands>...
FLAGS:
--cmd Graph the execution time for a list of commands rather than pinging hosts
-h, --help Prints help information
-4 Resolve ping targets to IPv4 address
-6 Resolve ping targets to IPv6 address
-s, --simple-graphics Uses dot characters instead of braille
-V, --version Prints version information
OPTIONS:
-b, --buffer <buffer> Determines the number of seconds to display in the graph. [default: 30]
-n, --watch-interval <watch-interval> Watch interval seconds (provide partial seconds like '0.5'). Default for
ping is 0.2, default for cmd is 0.5.
ARGS:
<hosts-or-commands>... Hosts or IPs to ping, or commands to run if --cmd is provided.
查看连通性
gping 域名/ip
也可以同时查看多个域名,用于对比网速
gping www.baidu.com www.qq.com
版权声明:本文为博主原创文章,转载请注明本页地址。https://blog.csdn.net/l1994m/article/details/124018311