![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0fT6k_ePdL8LUbrRHPh3gc_9Vfh8dVPjhMmUrfVF-EsYp31UiToG_0ngh1zu4CSe-2OraiJvR71uETMjoU5PCwwVGOwn3Jncw_WsPwwtAks70eOJG-cWXECXOFuH0gBS4DehTbenVfPA/s1600/speedtest-cli-results.png)
If you want to know the download & upload speed of your internet connection, speedtest-cli is the tool you can use.
peedtest-cli is a python script for testing your internet bandwidth using speedtest.net. While you can open your browser and go to the Speedtest.net site to test your Internet connection, speedtest-cli is much easier and quicker to use and bring back the result much faster.
To install speedtest-cli in Linux, run the following commands in the terminal:
sudo wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py -O /usr/bin/speedtest-cli
sudo chmod +x /usr/bin/speedtest-cli
The first command downloads the speedtest-cli script and save it in “/usr/bin” directory, while the second command set executable flag for the script.
Once installed, you just need to run the
speedtest-cli
command and it will run the speedtest.Other than testing the Internet speed, you can also share your result with speedtest.net. Use the command:
speedtest-cli --share
Other options you can set with
speedtest-cli
include --list
which will list all the speedtest.net server that you can use to test
your Internet speed. The default option is the server closest to your
location, but if you want to test the connection speed from a remote
location, say from Singapore to USA, then you can checkout the list of
speedtest.net servers and set the option:speedtest-cli --server SERVER_ID
|
That’s it.
No comments:
Post a Comment