Megaleecher.Net

Making technology work for you...

Get Your Free Subscription By Email:

How To Measure Download/Upload Speed From Linux Command Line

speedtest resultThere are numerous web-services like Speedtest.net which allow users to simply open a web-browser and benchmark their internet connections upload and download throughput with ease. However, if you need something similar for your server which does not have an graphical interface here are a few options to check network throughput from terminal/console. One can simply check download speed by using something like the command below at the terminal,

wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip

But for a thorough check with option for outputting beautiful shareable badge like the one on the right, we will use the "Speedtest" command-line utility as shown below.

Speedtest From Terminal
  • Download speedtest-cli using the below command, if you do not have git installed use apt-get install git or equivalent for your distribution.
git clone https://github.com/sivel/speedtest-cli
cd speedtest-cli 
  • Now run using :
  • python speedtest_cli.py
    
  • To create a shareable graphic badge hosted at the SpeedTest website use the --share argument.
  • python speedtest_cli.py --share
    

    Comments

    Thank you for the informative post. In the past we could only conduct the speed test through calculating time for downloading files. But lots of other options are out there now. Thanks for introducing us with another suchlike option.

    We are always deprived when the questions come for checking Internet speed. There is great difference between real and general speed. I tried your mentioned site, it really works.

    Add new comment

    This is just one of the many helpful tips we have posted, You can find more stories here,
    Do subscribe to updates using your favorite RSS feed reader or using the secure FeedBurner email update form on top of this post.