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

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. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  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...

36 Responses

  1. 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.

  2. 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 :-)

    # speedtest_cli.py –share

    • Ravi Saive says:

      @Verow,

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

  3. 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 https://github.com/sivel/speedtest-cli.git

      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 ./setup.py 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

  4. 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: mirror.tadu.vn
    * epel: http://ftp.cuhk.edu.hk
    * extras: mirror.tadu.vn
    * updates: mirror.nbrc.ac.in
    No package speedtest-cli available.
    Error: Nothing to do

    • Ravi Saive says:

      @Spandan,
      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..

  5. waldi says:

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

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?