Header Ads

How To Test Internet Speed Using Linux Command Line?

If you want to check your internet speed using the Linux command Line, here are some utilities which can help you out. These tools use the nearest servers listed on speedtest.net to test the download and upload speed of your internet connection.
You recently upgraded your broadband connection. Now, what’s better than testing the connection speed and feeling proud about your decision. Ookla’s Speed Test is probably the most used internet speed testing service out there.
If you want to drop the idea of testing your connection speed using a web browser, taking the help of your Linux command line can be a great idea. Here are some command line utilities which can help you test the speed of your internet using the command line.


Developer: Matt Martz (sivel)
Speedtest-cli is a command line tool which uses the servers of Speedtest.net to measure the bandwidth of your internet connection. The Python-based tool requires Python 2.4-3.5 in order to work correctly on your Linux distro.
You can install speedtest-cli using the Python PIP package manager by typing the following commands:
Install PIP:
sudo apt-get install python-pip
Install Speedtest-cli:
To test internet speed, just type the following command and press enter:
You can find various options in the help section of the utility:
Display the internet speed in megabytes/sec:
Get a list of avaialble servers (sorted in asceding order according to the distance from your location):
Choose a specific server to test internet speed:
Replace the server_id with the number written before a server in the list.


Developer: Janis Jansons
Another command line utility for testing internet speed is Tespeed. This utlity tests your download and upload speed using five serves closest to your locations. It is also created using Python and requires Python 2.7 or higher versions to run.
It also requires lxml and argparse python modules on Debian (and derived distros), use the following commands:
Now type the following command to copy the repo and install Tespeed on your machine:

Test internet speed using Tespeed

You need to navigate to the directory tespeed using command line (you will have to do this everytime). Type the following command to intiate speed test:
This utility also has different optioal arguments to customise the speed test.
Display speed in megabytes/sec:
Display server list:
In the place of [ListServer], type the number of servers you want the server list to display.
Display help:
So, these were two utilities you can use to test internet speed using the Linux command line. Alternatively, you can also download files using wget download manager on the command line. It will display the download speed. But it’s not an efficient method to test internet speed.
If you have something to add, tell us in the comments below.

No comments:

Powered by Blogger.