How to Test Network Speed on Linux VPS

We usually check the internet speed to verify if the network is okay or if we are getting what we have paid for. For Windows, Android or other GUI (Graphical User Interface) based OS, it is pretty simple. You can just open a web browser and type “speed test”. Many results will show up and you can use any of them to check the speed. Or you can use speedtest apps like OOKLA speed test or others.

While it is pretty simple for Windows or other GUI based systems, it can be a little challenging on CLI based systems like Linux. In this tutorial, we will show you how to install a speed test application in a CLI based Linux system and check the internet speed.

For this tutorial we will be using a Linux VPS with Ubuntu 20.04

Let’s get started then…

Connect to the Linux VPS with a SSH Client like PuTTY. Once you are connected to the Linux VPS, check the version of the OS. It can be done by running this command:
$ lsb_release -a

Once you know the type and version of the Linux OS, you can continue to the next step which is installing the speedtest application via CLI.
You need to install “pip” (a python package manager) before installing the speedtest CLI. If you run the command before installing “pip”, you will get this kind of error:

To install pip, use these commands:
$ sudo apt install python3-pip

Once the pip is installed, use this to install the speedtest CLI on the Linux VPS:
$ sudo pip install speedtest-cli

Once the installation is completed, run this to test the speed:
$ speedtest-cli


You can list the available servers and choose a specific server for checking the speed.

To list the available servers, run this command:
$ speedtest-cli –list

To select a specific server, you need to run this command (replace the SERVER_ID_OR_NAME with actual ID or name):
$ speedtest-cli –server SERVER_ID_OR_NAME

The server ID can be found by running this command:
$ speedtest-cli –list

Running this command for server ID 27746 will show this kind of result:
$ speedtest-cli –server 27746

You can even generate a shareable link of the speedtest. If you want to generate a shareable link of the speed test against server 27746, you can run this command:
$ speedtest-cli –server 27746 –share

You can go to this link to check the speedtest result on the web:
Weblink: http://www.speedtest.net/result/16241259205.png

All these tests were run on a Linux VPS running Ubuntu 20.04. The VPS was hosted on our USA server which was connected to a 10Gbps network port. The speedtest result may vary depending on the server load and network traffic. These commands will work on Debian based Linux distros.

For CentOS or RedHat or other Scientific Linux distros, you can run these commands:

To install Python:
$ sudo yum install python
or
$ sudo yum install python3

You also need to install “wget”. To install it run this command:
$ yum install wget

To download and install speedtest_cli.py:
$ wget -O speedtest-cli
https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
$ chmod +x speedtest-cli

For checking the internet speed:
$ ./speedtest-cli
Or
$ python speedtest-cli

You can run these simple commands to test the internet speed of your Linux VPS and verify you are getting what you have paid for.

FireVPS offers several Linux distros with their AMD Ryzen Linux VPS. While the default network port for the Linux VPS is 1Gbps, you can get Linux VPS from FireVPS with a 10Gbps network port. This concludes our tutorial on how to test internet speed in a Linux VPS.

If you are still having any issues or confusion, please feel free to knock us on Live Chat from our website. Our support team is always ready to help you.
FireVPS / Live Chat / Skype / support@firevps.net

Need Domain Name?

85% Promo on Domain Names

Dedicated RDP

Poland RDP 50% recurring discount!

Recent Post

How to Transfer Files to a Linux VPS using SSH?

While file transfer between windows systems is easy and straightforward, it is a little tricky when it comes to transferring files between a windows system and a Linux VPS. However, it can be done easily using SSH. In Windows, you can just copy/paste a file or folder...

How to Install Magento on Ryzen/Linux VPS – FireVPS

Installing Magento on a Ryzen-powered Linux VPS can significantly enhance your e-commerce platform's performance. Magento is a popular open-source e-commerce platform, and with FireVPS, you can leverage powerful Ryzen processors to ensure your online store runs...

How to buy VPS with BTC or Bitcoin?

The long awaited payment method is here! Yes, you guessed it right! FireVPS has added Cryptocurrency payment options for its products and services. Now you can easily purchase your desired product (RDP/VPS) with your BTC or other available Cryptocurrency wallets....

How to disable Windows SmartScreen

Are you having issues installing a program/software after downloading it? It is not responding or doing anything after double clicking it? If yes, then you need to check if it is due to the Windows SmartScreen. Windows SmartScreen is windows operating systems default...