How to Test Network Speed on Linux VPS
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
![](https://firevps.net/blog/wp-content/uploads/2024/06/img_1-1.png)
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
sudo pip install speedtest-cli
![](https://firevps.net/blog/wp-content/uploads/2024/06/img_3.png)
Once the installation is completed, run this to test the speed:
speedtest-cli
![](https://firevps.net/blog/wp-content/uploads/2024/06/img_4.png)
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
![](https://firevps.net/blog/wp-content/uploads/2024/06/img_5.png)
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
speedtest-cli --list
speedtest-cli --server 27746
![](https://firevps.net/blog/wp-content/uploads/2024/06/img_6.png)
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
![](https://firevps.net/blog/wp-content/uploads/2024/06/img_7.png)
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
sudo yum install python3
yum install wget
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
./speedtest-cli
python speedtest-cli
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
![](https://firevps.net/blog/wp-content/uploads/2023/03/permanent-domain-registration-scaled-1-1.jpg)
Need Domain Name?
85% Promo on Domain Names
![](https://firevps.net/blog/wp-content/uploads/2023/04/data-center.png)
Dedicated RDP
Poland RDP 50% recurring discount!
Recent Post
FireVPS accept Perfect Money for VPS, RDP, Business Email & Other Products
Remote Desktop Admin RDP 10Gbps RDP Linux VPS Ryzen VPS CyberPanel powered VPS Business Email GSuiteTM Perfect Money checkout process Choose the desired products/package Configure it On the checkout page choose Perfect Money as your payment method. You will be...
Unable to create directory wp-content/uploads/2024/09. Is its parent directory writable by the server?
Symptoms: Suddenly you can not upload any file in WordPress Media. The error shows: “Unable to create directory wp-content/uploads/. Is its parent directory writable by the server”. Diagnosis: The error indicates that the wordpress system can not create...
How to fix WordPress Media error “The uploaded file could not be moved to wp-content”
Symptoms: After moving a WordPress website from one server to another or any security changes in server level may trigger the error. While uploading a file using WordPress Media the upload process failed and the error is “The uploaded file could not be moved to...
How to Connect to a Linux Server from Windows: A Comprehensive Guide for FireVPS Users
Connecting to a Linux server from a Windows machine is a crucial task for managing your web hosting services efficiently. Whether you are deploying a new application, managing a database, or configuring server settings, having a seamless connection is essential....