How to measure network speed under linux system

We can use the online speed test to test the network speed under windows, but how to test the speed under linux

You can ask the following site Speed ​​test site can find the command line tool for your corresponding operating system. I am centos
Insert picture description here
and copy the content.

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

Then just execute speedtest directly.
The execution results are as follows

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

Of course, if you dislike the above command trouble, you can also download its python script directly

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

Then just execute it directly

./speedtest.py

Guess you like

Origin blog.csdn.net/a807719447/article/details/113344407