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-get 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
Step 4: To measure network speed to a specific location by running the command
speedtest --server-id=[ID-SERVER]
In our example, we check the location Denver,CO
You can check serverID here: speedtest_servers.csv
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 curl curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | bash yum install speedtest
Step 3: To measure your network speed by running the command
speedtest
Step 4: To measure network speed to a specific location by running the command
speedtest --server-id=[ID-SERVER]
In our example, we check the location United States,”San Francisco, CA”.
You can check serverID here: speedtest_servers.csv
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.
Conclusion
In this article, we have guided you to use Speedtest CLI on Linux and check in a specific location. Hopefully, this article will be useful for you. Good luck!