How to Test Internet on Linux Using speedtest-cli?

While troubleshooting your system for slow internet access, the best way to figure is to measure the internet speed first. To check Internet speed on Linux we will be using third party tool speedtest_cli. It is a simple command-line client based on python for measuring internet bandwidth using infrastructure. 

Test Download/Upload speed in Linux: You can use this command to test the download and upload speed from the Linux command line, it is a one-time usage command: 

wget -O - | python

download and upload speed from the Linux command line

Install Speedtest_cli: The above command was a one-time use command, so every time you want to test you need to put a long command in. So you can Install the speedtest_cli in your system using these commands: 

chmod a+rx
sudo mv /usr/local/bin/speedtest
sudo chown root:root /usr/local/bin/speedtest


Install Speedtest_cli

Once the installation is done you can simply type “speedtest in the terminal and your results will be there 

Internet Speed Test Using speedtest-cli in Linux

My Personal Notes arrow_drop_up

Recommended Posts:

    Check out this Author's contributed articles.

    If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

    Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

    Article Tags :


    Please write to us at to report any issue with the above content.