I doubt there is a better alternative to Ookla’s speedtest when it comes to testing our internet speed. Once in a while, we all like to test our internet speed by visiting their website. Wouldn’t it be a lot cooler if we could test our internet speeds by using speedtest.net without having to visit their website right from the terminal? So here we have speedtest-cli the command line utility for testing your internet speeds with speedtest.net.
How to install Speedtest CLI in Linux?
The installation is easier than you expect. Since it is already in the official repositories, you can install it by simply typing the following command in your terminal.
sudo apt-get install speedtest-cli
Since the tool has been written in python and you can also install it via pip.
pip install speedtest-cli
How to test Internet speed right from Terminal?
Just fire up a terminal and type speedtest-cli and hit enter.
You can also make some changes, like in the above test the values are in bits. Now you might want to read the values in bytes. To do that simply add a –bytes trailing your command.
More useful commands
Speedtest-cli offers a host of options and customization and you can check them out by simply typing in – speedtest-cli -h , For example, to get a list of all speedtest servers in ascending order of their distance from you. Just type in the following command –
You see those numbers to the extreme right? You can choose to run a test from that particular server simply by supplying its id using the following command –
speedtest-cli --server 12838
We saw this amazing tool called speedtest-cli that can be used to test our internet speed from the terminal. It has a good amount of features and is made in python. So apart from Debian/Ubuntu, t is also available via pip as a python package.
Have you used this before? Do you like using it? Let us know in the comments section below.