Home  >  Article  >  System Tutorial  >  Test network speed/bandwidth installation using Linux command line in CentOS

Test network speed/bandwidth installation using Linux command line in CentOS

PHPz
PHPzforward
2024-02-09 21:10:08674browse

When using Centos, have you ever thought about how to test network speed if you don’t use a speed testing website? Let’s share a method of using speedtest.

Test network speed/bandwidth installation using Linux command line in CentOS

Install speedtest-cli

speedtest-cli is a lightweight Linux command line tool written in Python, which can run under Python versions 2.4 to 3.4. It is based on Speedtest.net's infrastructure to measure the network's up/down speed. Installing speedtest-cli is easy - just download its Python script file.

# wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
# chmod +rx speedtest.py
# sudo mv speedtest.py /usr/local/bin/speedtest-cli
# sudo chown root:root /usr/local/bin/speedtest-cli

Use speedtest-cli to test network speed

Using the speedtest-cli command is also very simple, it does not require any parameters to work.

# speedtest-cli

After entering this command, it will automatically discover the Speedtest.net server closest to you (geographical distance), and then print out the tested network up/down speed. Note: Since some test points are overseas, multiple tests are required before the results are correct.

The above is the detailed content of Test network speed/bandwidth installation using Linux command line in CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:lxlinux.net. If there is any infringement, please contact admin@php.cn delete