Home> System Tutorial> LINUX> body text

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

PHPz
Release: 2024-02-09 21:10:08
forward
602 people have browsed it

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
Copy after login

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
Copy after login

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!

source:lxlinux.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!