How to use Speedtest CLI on Linux

In this article we will guide you how to install Speedtest CLI on Linux to test the network speed for your server or VPS.

I.  Install Speedtest CLI on Linux

Step 1: Log in your Server via SSH

Step 2: Install Speedtest CLI

Depending on which operating system your server is using, choose the appropriate commands.

For Ubuntu/Debian
curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash
apt-get install speedtest


For Centos
yum install wget
curl -s https://install.speedtest.net/app/cli/install.rpm.sh | sudo bash
yum install speedtest
Step 3: How to use Speedtest CLI

First you need to use the Speedtest command to accept the terms of service, then when asked to accept the terms of service, enter YES.Next time, you can use the Speedtest command to test your server network.