linux系统下如何测网速

我们在windows下可以使用在线测速测试网速,但是在linux下如何测速了

大家可以反问以下站点测速站点可以找到你对应操作系统得命令行工具我是centos
在这里插入图片描述
把内容复制出来

sudo yum install wget
wget https://bintray.com/ookla/rhel/rpm -O bintray-ookla-rhel.repo
sudo mv bintray-ookla-rhel.repo /etc/yum.repos.d/
# Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using yum
# rpm -qa | grep speedtest | xargs -I {} sudo yum -y remove {}
sudo yum install speedtest

接着直接执行speedtest就行了。
执行结果如下

Testing download speed................................................................................
Download: 20.50 Mbit/s
Testing upload speed................................................................................................
Upload: 1.16 Mbit/s

当然如果你嫌弃上面得命令麻烦你也可以直接下载它的python脚本

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py

然后直接执行就好

./speedtest.py

猜你喜欢

转载自blog.csdn.net/a807719447/article/details/113344407
今日推荐