Jump to content

Check Internet Speed of the Server via Linux Command – SpeedTest-CLI

Sandeep B.

Recommended Posts

In this tutorial we’ll test and check the server network connection speed via speedtest-cli (Speedtest by Ookla), the best thing is you can directly install the speedtest python package to your Linux distro and run the test via terminal command isn’t is awesome.

This will also help you to determine that what exactly network speed your server provider is providing. Without waiting lets get started. Difficulty level : super easy

For Centos/EL 7/centos 8 stream/centos 9 stream

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

to run the speedtest type below command : 


**accept the license by typing "yes"

For Ubuntu/Debian :

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

to run the speedtest type below command : 


**accept the license by typing "yes"

For other OS : 

mkdir -p /usr/local/ookla
cd /usr/local/ookla
wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz
tar zxvf ookla-speedtest-1.2.0-linux-x86_64.tgz

to run the speedtest type below command : 

cd /usr/local/ookla

**accept the license by typing "yes"

it will show the speed results like below : 

Speedtest by Ookla

      Server: Frontier - Ashburn, VA (id: 14229)
         ISP: Hetzner Online GmbH
Idle Latency:     0.32 ms   (jitter: 0.00ms, low: 0.31ms, high: 0.32ms)
    Download: 17904.35 Mbps (data used: 9.7 GB)
                  1.25 ms   (jitter: 0.27ms, low: 0.34ms, high: 1.86ms)
      Upload: 16385.81 Mbps (data used: 15.5 GB)
                  2.86 ms   (jitter: 0.79ms, low: 0.68ms, high: 7.50ms)
Packet Loss:     0.0%
  Result URL: https://www.speedtest.net/result/c/524965dc-5310-4b38-9ce6-218bf4de7d0b


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...