How to test linux server internet speed

speedtest-cli is a very useful command line tool for SysAdmin or users with shell access to quickly test the download, upload and ping speed of the Linux server.

Below we will cover the installation on CentOS/RedHat , Ubuntu/Debian and the manual way that will work for any other Linux distribution.

Almalinux/RedHat

Install the epel release repository

Install python3 and python3-pip and update pip

Install speedtest-cli with pip3

Ubuntu

Update server packages

Install python3 , python3-pip and update pip3

Install speedtest-cli with pip3

Other Linux/UNIX distributions

Make sure python3 is installed on your server

Download speedtest-cli

Change file permissions for execution

Note: Some firewalls may prevent the test from working properly by generating a “0 Mbps” download/upload result.

Example commands for speedtest-cli

Run the command below to start the speed test

Example of result

To run the test and generate the Speedtest link with the result:

Below is an example of the result


Need some assistance on your Server? We can help you!