如何在Ubuntu20.04上安装Gping
Gping是一个使用Rust语言开发的ping命令,带有可视化图表的ping命令,它是跨平台的命令行程序。可以在Windows、MacOS中运行。本篇文章分享如何在ubuntu中安装Gping,以及如何在WIndows行MacOS上安装Gping。
如何在Ubuntu中安装Gping
使用snap安装gping
如果系统没有安装snap,请先安装snap,命令如下:
sudo apt install snap
然后使用snap安装gping
snap install gping
直到安装完成。
如何在Windows上安装Gping
下载Windows的Gping二进制文件,然后在Windows系统中设置gping的环境变量。
下载地址:https://github.com/orf/gping/releases
如何在MacOS上安装Gping
使用如下命令安装Gping
brew install gping
使用Cargo安装Gping
cargo是rust的包管理器,就像Javascript的npm或者php的composer、python的pip。
cargo install gping
Gping的命令使用示例
$ gping --help
gping 0.1.7
Ping, but with a graph.
USAGE:
gping [OPTIONS] <hosts>...
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-b, --buffer <buffer> Determines the number pings to display. [default: 100]
ARGS:
<hosts>... Hosts or IPs to ping
{{ nComment.author.nickname }}
{{ nComment.time }}