Check Internet Speed With Speedtest-cli on CentOS
In this tutorial, we'll be installing Speedtest-cli to test the network speed of your server. Speedtest-cli is a command line interface for the popular speed-testing service, speedtest.net. It is quite simple to do and will only require basic Linux knowledge. This tutorial will work on CentOS 5, 6, and 7.
Dependencies
Before we do anything, we must install one dependency.
yum install -y python
Installation
Enter the root directory.
cd ~
Retrieve the Python script using wget
. This script was written by Sivel; you can learn more about it on the GitHub page.
wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
Make the speedtest.py
script executable.
chmod +x speedtest.py
Usage
Run the script to determine your inbound/outbound connection bandwidth.
./speedtest.py
If you want an image of the result, run the following command instead.
./speedtest.py --share