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
For Ubuntu/Debian
Step 1: Login your Server via SSH
Step 2: Install Speedtest CLI
Depending on which operating system your server is using, choose the appropriate commands.
apt install curl curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash apt-get install speedtest
Step 3: To measure your network speed by running the command
speedtest
For Centos
Step 1: Login your Server via SSH
Step 2: Install Speedtest CLI
Depending on which operating system your server is using, choose the appropriate commands.
yum install wget curl -s https://install.speedtest.net/app/cli/install.rpm.sh | bash yum install speedtest
Step 3: To measure your network speed by running the command
speedtest
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.