Easily measure Internet Speed using Linux Command Line

Ankur Gupta
Ankur Guptahttps://antarjaal.in
Web developer by profession, Over 10 years experience of building websites and web applications. Currently working on Epaper CMS Cloud (Software As Service based product). Special interest in computer and technology. After writing on the blogger platform for years, started his own tech portal Antarjaal.In.

In order to verify that our internet service provider is providing us the same speed that he had promised, we need to measure our internet speed. Many times we may also need to know the server’s internet speed.

If you have Ubuntu, then install the following package to measure internet speed from the command line:

sudo apt install speedtest-cli

Once this package is installed, then execute it by following command

speedtest-cli

You will see something like this:

Retrieving speedtest.net configuration…
Testing from RailTel Corporation Of India Ltd. (103.74.111.126)…
Retrieving speedtest.net server list…
Selecting best server based on ping…
Hosted by Ortel (Bhubaneswar) [0.70 km]: 201.076 ms
Testing download speed …… ……………………………………………………………… ..
Download: 4.49 Mbit / s
Testing upload speed …… ……………………………………………………………………………………
Upload: 2.15 Mbit / s

Python Script to measure Internet speed from Linux command line

If you wish you can also download SpeedTest’s Python script:

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

and after download, it can be executed by Python

python speedtest.py 

OR

python3 speedtest.py

See Also: Run Visual Studio Code in Cloud using CodeServer

2 COMMENTS

Comments are closed.

Reality of Unlimited Web Hosting

You must have often noticed that many web hosting companies offer unlimited shared hosting. Does Unlimited really mean Unlimited?...

More Articles Like This