How To Test Internet Connection Speed via Command Line

Test Internet Connection Speed via Command Line

In this tutorial, we will show you how to Test Internet Connection Speed via Command Line on Linux. For those of you who didn’t know, Speedtest.net is a pretty good place to check your internet speeds. But there is an even simpler way. Using the speedtest-cli command line app, you can actually check your current broadband speeds via Terminal. For those of you who didn’t know, speedtest-cli is a simple CLI client written in Python for measuring bidirectional Internet bandwidth by using Speedtest.net infrastructure. It works with Python 2.4-3.4. Installing the latest speedtest-cli is nothing more than downloading the Python script.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step by step installation Speedtest on a Linux systems.

Test Internet Connection Speed via Command Line

Step 1. First, let’s start by ensuring your system is up-to-date.

Step 2. Installing speedtest-cli on Linux.

Run the following command to install speedtest:

Once successfully installed, Run an internet speed test with the following command:

If you want to share the speed test result, you can use “–share” option, which will allow you to share speed test result with others in an image format via Speedtest.net.

Test Internet Connection Speed via Command Line

The utility supports a few other parameters, and you can view them by running thespeedtest-cli.py –help command.

Congratulations! You have successfully Test Internet Connection Speed. Thanks for using this tutorial for Test Internet Connection Speed via CLI on Linux system. For additional help or useful information, we recommend you to check the official speedtest website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

Tags: