Skip to content

Speedtest – measuring network speed on Linux servers

Speedtest – measuring network speed on Linux servers

SpeedTest – a handy command-line utility for checking internet speed directly from your server. This tool lets you measure download speed, upload speed and network latency, which is especially useful when diagnosing network problems and assessing connection performance on remote servers.


Preparing for installation

The installation example uses the Ubuntu 20.04 LTS operating system. However, the process will be similar for other Linux distributions too.


Step-by-step SpeedTest installation

1. Updating the repositories

Let's start by updating the system's package lists and repositories:

bash
sudo apt-get -y update

2. Installing the curl utility

Let's install curl, which is needed to download the installation script:

bash
apt-get install -y curl

3. Downloading the SpeedTest installation files

Download the official SpeedTest installation script:

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

4. Installing SpeedTest

After downloading the files, run the command to unpack and install SpeedTest:

bash
sudo apt-get install speedtest

Using SpeedTest

After a successful installation, run the network speed test with a simple command:

text
speedtest

On the first run, you will be asked to accept the licence agreement. Once you accept the licence, the network speed test will begin.


Test results

When the test is complete, you will get detailed information about your connection speed, including:

  • The server used for testing
  • Latency (ping)
  • Download speed (download)
  • Upload speed (upload)
  • Connection quality

This data will help you assess the real performance of your server's network connection and identify possible problems.


Additional options

SpeedTest CLI has several additional options, which you can view by running the command:

text
speedtest --help

This will let you tailor the testing to your specific needs – choose a particular server, change the output format of the results or run a test without measuring upload speed.


Our resources

Telegram channel: https://t.me/
F3 Cloud: https://f3cloud.com

F3 Cloud Knowledge Base