1. Install speedtest-cli application
Note: You can optionally skip the “sudo” prefixes on the commands below by switching to root using the sudo su
command.
First, make sure your list of repository packages is up to date:
1 2 3 |
sudo apt-get update |
Next, install the Python package manager (pip):
1 2 3 |
sudo apt-get install python-pip |
Now install the speed-cli application using Python package manager (pip):
1 2 3 |
sudo pip install speedtest-cli |
And if you ever want to upgrade the application, you can use:
1 2 3 |
sudo pip install speedtest-cli --upgrade |
1 2 3 4 |
Requirement already up-to-date: speedtest-cli in /usr/local/lib/python2.7/dist-packages Cleaning up... |
2. Test your connection speed using speedtest-cli application
To check your internet connection speed, run the speedtest-cli application:
1 2 3 |
speedtest-cli |
1 2 3 4 5 6 7 8 9 10 11 |
Retrieving speedtest.net configuration... Testing from iomart (78.129.197.40)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by fdcservers.net (London) [2.56 km]: 2.937 ms Testing download speed................................................................................ Download: 741.21 Mbit/s Testing upload speed................................................................................................. Upload: 49.22 Mbit/s |
Alternatively, if you want to be able to share your results:
Run the speedtest-cli application using the optional share argument:
1 2 3 |
speedtest-cli --share |
1 2 3 4 5 6 7 8 9 10 11 12 |
Retrieving speedtest.net configuration... Testing from iomart (78.129.197.40)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by Seacom Ltd (London) [2.56 km]: 2.674 ms Testing download speed................................................................................ Download: 663.40 Mbit/s Testing upload speed.................................................................................................. Upload: 101.96 Mbit/s Share results: http://www.speedtest.net/result/6017542333.png |
Paste the address above into a browser to see the result. Example:
For additional information:
- Speedtest.net website (the original web-based version)
- Run speedtest-cli using the optional help argument:
123speedtest-cli --help123456789101112131415161718192021222324252627282930313233343536373839usage: speedtest-cli [-h] [--bytes] [--share] [--simple] [--csv][--csv-delimiter CSV_DELIMITER] [--csv-header] [--json][--list] [--server SERVER] [--mini MINI][--source SOURCE] [--timeout TIMEOUT] [--secure][--version]Command line interface for testing internet bandwidth using speedtest.net.--------------------------------------------------------------------------https://github.com/sivel/speedtest-clioptional arguments:-h, --help show this help message and exit--bytes Display values in bytes instead of bits. Does notaffect the image generated by --share, nor output from--json or --csv--share Generate and provide a URL to the speedtest.net shareresults image--simple Suppress verbose output, only show basic information--csv Suppress verbose output, only show basic informationin CSV format. Speeds listed in bit/s and not affectedby --bytes--csv-delimiter CSV_DELIMITERSingle character delimiter to use in CSV output.Default ","--csv-header Print CSV headers--json Suppress verbose output, only show basic informationin JSON format. Speeds listed in bit/s and notaffected by --bytes--list Display a list of speedtest.net servers sorted bydistance--server SERVER Specify a server ID to test against--mini MINI URL of the Speedtest Mini server--source SOURCE Source IP address to bind to--timeout TIMEOUT HTTP timeout in seconds. Default 10--secure Use HTTPS instead of HTTP when communicating withspeedtest.net operated servers--version Show the version number and exit
Speak Your Mind