Measuring Network Speed in Linux with Speedtest CLI

4 min readUpdated December 6, 2025

Here you can clearly see how to measure network speed on VDS and Dedicated servers running Linux in the simplest and most effective way.

For installation examples, we will use the operating system Ubuntu 20.04 LTS.

#Proceeding to installation

First, we need to update the system package and repository lists using the following command:

bash
sudo apt-get -y update

After a few minutes the process is completed, and next we need to install the curl utility:

bash
apt-get install -y curl

Done!

Installing curl

Now download the Speedtest software files:

bash
curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash

The files have been successfully downloaded.

Downloading Speedtest files

Next, run the following command to unpack and install Speedtest:

bash
sudo apt-get install speedtest

Speedtest has been installed.

Installing Speedtest

Now we can use a simple command to check the network speed:

bash
speedtest

Run the command and accept the license agreement.

Accepting the Speedtest license agreement

The network speed measurement process then begins.

Network speed measurement process

Once the test is complete, you will be presented with detailed information about the results:

Network speed test results

Did not find the answer? We are online 24/7.Contact support