How to speed test your internet connection in the Linux command line?

In this tutorial you will learn how to speed test your internet connection in the Linux command line.

1 – Check if curl is already installed on your server

which curl

curl_version

curl is already installed on the server.

if not, run the following command

sudo apt install curl

curl_installation

You should now have curl installed on the server.

2 – Setup speedtest repository

curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash

curl_repository

3 – Install the command on the server

sudo apt-get install speedtest

speedtest_command

Speedtest is now installed on the server.

4 – Run a speed test

To run a speed test, you have to run the following command:

speedtest

run_speedtest

You will be prompted to accept the license before performing your first speed test.

Then the speed test result will be displayed in the terminal.

speedtest_result

To view the result in your browser, visit the link provided with the result (result URL).

browser_result

useful commands

To view the help menu and useful commands, run the following command:

speedtest -h

To view the speed results in:

GB/s

speedtest -u GB/s

MB/s

speedtest -u MB/s

KB/s

speedtest -u KB/s

B/s

speedtest -u B/s

useful_commands

Related articles

Real-time file integrity monitoring with Wazuh

This tutorial will teach you how to implement real-time file integrity monitoring with Wazuh SIEM.

Setting up a ticketing system with Docker and Peppermint

This tutorial will teach you how to set up a ticketing system with Docker and Peppermint.

Installing Sysmon on a Windows machine and integrating Sysmon events into Wazuh

What is Windows Sysmon? In the case of monitoring Windows...

Securing sensitive data with Veracrypt

What is VeraCrypt? In relation to protecting sensitive information, the...