How to Test Your Internet Speed Bidirectionally from Command Line Using ‘Speedtest-CLI’ Tool

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

40 Responses

  1. crt says:

    This would be more useful if it could be used between two servers on the same internal network; between subnets and over VPN’s and not just “yet another internet speedtest” application.

  2. Kirk M says:

    I noticed that attempting to run:


    …from the terminal after the two packages were installed using ‘apt’, the result was no command found running Linux Mint 18.1). It appears that the correct command is:

    ‘speedtest-cli’ (with a ‘dash’ not an ‘underscore’ and no ‘.py’ at the end)

    The above works fine although I tend to like to see the results in bytes not bits so I added –bytes at the end.

  3. Rob Philp says:

    You said it “should not be used to record internet speed automatically”. Why? I’d like to have this scheduled to run regularly and keep a log of my internet speeds to use when addressing poor service with my ISP.

  4. verow says:

    3. Share your bandwidth speed with your friends or family. You are provided with a link that can be used to download an image.
    in this section, missing the example of the command line :-)

    # –share

    • Ravi Saive says:


      Thanks for updating that missing command about sharing network bandwidth usage report, updated in the article..

  5. David Menges says:

    I don’t suppose this will install on Mac OS?

    • Abid says:

      Why do you say that? Mac OS is BSD under the covers. But, you will have to make sure Xcode is already installed first which is a free download from the Mac App store.

      Do this in a Terminal window after you have installed Xcode:

      1. Think of a location where you would want to keep the source files and “cd” into that directory, for example, I keep my sources in ~/src
      2. Download the code from GitHub:

      sudo git clone

      The above may generate a message saying you have to agree to Xcode’s license agreement before being allowed to use Xcode.
      Type in “agree” when prompted.

      3. You will now have a directory titled speedtest-cli; cd into this directory
      4. Install the sources:

      sudo python ./ install

      It should run without any warnings or errors (will get installed in /usr/local/bin).

      5. Now you can run the following for the help screen (usage info):

      speedtest-cli -h

  6. couldn’t install speedtest-cli in centOS 6.7 . Following error occured:

    yum install speedtest-cli
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    * base:
    * epel:
    * extras:
    * updates:
    No package speedtest-cli available.
    Error: Nothing to do

    • Ravi Saive says:

      There isn’t any speedtest-cli package available from Yum repositories, the only way is to install it from PIP tool as described in this article. So, first install pip package and then do pip to install the speedtest-cli package as shown in this article..

  7. waldi says:

    CENTOS 6.6
    speedtest ver. 0.3.2
    Change line 343 in the script
    Voilà :)

Leave a Reply to Avishek Kumar Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.