Learn How To Check Internet Speed With Speedtest-cli on CentOS

March 25, 2019

Table of Contents

Introduction

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

Need help?

Do you need help setting up this on your own service?
Please contact us and we’ll provide you the best possible quote!