Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to check Internet speed from command line on Linux  (Read 3427 times)

0 Members and 1 Guest are viewing this topic.

lathu_official

  • Guest
How to check Internet speed from command line on Linux
« on: February 10, 2014, 06:38:37 am »
Download and Install speedtest-cli on Linux

speedtest-cli is a simple CLI client for measuring bidirectional Internet bandwidth by using Speedtest.net infrastructure.  Installing the latest speedtest-cli is nothing more than just downloading the Python script.

$ wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
$ chmod a+rx speedtest_cli.py
$ sudo mv speedtest_cli.py /usr/local/bin/speedtest-cli
$ sudo chown root:root /usr/local/bin/speedtest-cli



How to Test Internet Connection Speed with speedtest-cli

To know the internet speed just run the command speedtest-cli. You will get all the result on screen.

$ speedtest-cli

This will automatically discover the closest Speedtest.net server (in terms of geographic distance), and report download and upload speed measured from the server.

root@admin:~# speedtest-cli
Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from BSNL (117.228.209.81)…
Selecting best server based on ping…
Hosted by Hathway Cable and Datacom Ltd (Mumbai) [119.64 km]: 19.021 ms
Testing download speed………………………………….
Download: 4.47 Mbit/s
Testing upload speed…………………………………………..
Upload: 2.72 Mbit/s



If you want to get a list of available Speedtest.net servers around the world, use “–list” option. It will display a sorted list of Speedtest.net servers.

root@aiderpro:~# speedtest-cli –list |more
Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
3141) Intech Online Pvt. Ltd. (Thane, India) [119.56 km]
798) Honesty Net Solutions (Mumbai, India) [119.64 km]
4310) Hathway Cable and Datacom Ltd (Mumbai, India) [119.64 km]
1718) Vodafone India (Mumbai, India) [119.64 km]
2938) Reliance Communications (Mumbai, India) [119.64 km]
3737) Indusind Media & Communication Ltd. (Mumbai, India) [119.64 km]
3315) Joister Infomedia Pvt. Ltd. (Mumbai, India) [119.64 km]
2679) Bharti Airtel Ltd (Hyderabad, India) [503.57 km]
3630) Excell Media Pvt Ltd (Hyderabad, India) [503.57 km]
3395) BEAM TELECOM (Hyderabad, India) [503.57 km]
3984) Pioneer Elabs Limited. (Hyderabad, India) [504.54 km]
3663) RAJESH PATEL NET SERVICES (P) LTD (Indore, India) [510.75 km]


------------

Thanks