How to speedtest your connection from CLI/Shell

If you are used to the popular “SpeedTest.net” Web site to test your bandwidth connection, then here is how to use the same tool but using your Linux terminal.


 



  1. Download the python script :
    wget http://download.alex-rusli.com/public/script/speedtest_cli.py

     .



  2. Make it executable :
    chmod +x speedtest_cli.py

     .



  3. Run the test using the script :
    ./speedtest_cli.py

     .



  4. The output should look like this :
    # ./speedtest_cli.py
    Retrieving speedtest.net configuration...
    Retrieving speedtest.net server list...
    Testing from Unified Layer (xxx.xxx.xxx.26)...
    Selecting best server based on ping...
    Hosted by C7 Data Centers (Salt Lake City, UT) [60.46 km]: 20.981 ms
    Testing download speed........................................
    Download: 958.55 Mbits/s
    Testing upload speed..................................................
    Upload: 690.35 Mbits/s

     


    .


 


 


 

Share this

Related Posts

Previous
Next Post »