Use Speedtest CLI to Test Your Internet Speed ​​in Debian 10

To fix problems with slow connections that lead to poor Internet access, we first want to check the speed of the Internet in our system. For instance. When you switch to a new Internet connection and want to make sure that you are getting what the provider offers, it is useful to check the speed of the Internet. In this article, we will use the Linux command line tool called speedtest-cli. It is written in Python and uses the speedtest.net website to test throughput by downloading and uploading data to and from your system.

We ran the commands and procedures mentioned in this article on the Debian 10 Buster system.

Installing the speedtest-cli utility

First, open the Debian Terminal by searching in the Application Launcher as follows:

Then enter the following command as sudo to install python. This allows you to install packages through pip.

$ sudo apt-get install python-pip

Install python

The system may ask you to enter a password for sudo, since only an authorized user can add, remove and configure software in Debian.

Once Python pip is successfully installed, use the following command to install the speedtest-cli tool through it:

$ sudo pip install speedtest-cli

Install speedtest-cli

The required tool will be installed on your system.

Checking the speed of your internet through speedtest-cli

Now you can enter the following command in your terminal to check the speed of your Internet:

$ speedtest-cli

Check internet speed in Debian

As a result, the download and upload speeds of your current Internet connection will be displayed.

Share your internet speed

Speedtest-cli also allows you to share the speed of your internet by providing a link on the speedtest.net website with the following command:

$ speedtest-cli --share

This command creates a link that you can open and open through a browser to get an image like this:

Speed ​​test result

Now that you know how to install and use this tool, you can check the speed of your Internet. You can also share the speed of your Internet connection, avoiding the graphical interface altogether!

Use Speedtest CLI to Test Your Internet Speed ​​in Debian 10

Sidebar