1 查看linux网速

linux 查看即时网速 /流量

watch -n 1 "/sbin/ifconfig eth0 | grep bytes"

在这里插入图片描述

Linux下使用Speedtest测试网速

Github链接:https://github.com/sivel/speedtest-cli
Speendtest.net官网:http://www.speedtest.net/
测试本机所在网络出口的带宽,访问Speendtest.net,点击首页的Begin开始测试,等待几秒,查看测试结果:

pip安装
speedtest是用python写的,没使用过pip的需要先安装pip,

pip安装:https://pip.pypa.io/en/stable/installing/
#开启epel源

yum install python-pip –y

安装speedtest-cli

pip install speedtest-cli

安装完成测试

which speedtest-cli | bash –

github安装

pip install git+https://github.com/sivel/speedtest-cli.git

或者

git clone https://github.com/sivel/speedtest-cli.git
python speedtest-cli/setup.py install

shell安装

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x speedtest-cli
./speedtest-cli

speedtest-cli使用

speedtest-cli –h
/usr/bin/speedtest-cli –share
/usr/bin/speedtest-cli –list

参考命令 :
Linux下使用Speedtest测试网速 :https://www.linuxprobe.com/speedtest-network-in-linux.html

猜你喜欢

转载自blog.csdn.net/qq_40907977/article/details/112468195
今日推荐