Check Internet Speed With Speedtest-cli on CentOS

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_cli.py

Make the speedtest_cli.py script executable.

chmod 777 speedtest_cli.py

Usage

Run the script to determine your inbound/outbound connection bandwidth.

./speedtest_cli.py

If you want an image of the result, run the following command instead.

./speedtest_cli.py --share
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Speed Up Nginx on CentOS?

Introduction This tutorial will teach you how to optimize a website that is being hosted with...

Basics of Managing Users on CentOS Systems

Managing users can be a daunting task: from day-to-day maintenance, security risks, and lack of...

Initial Setup of a CentOS 7 Server

Introduction A newly activated CentOS 7 server has to be customized before it can be put into...

ModSecurity and OWASP on CentOS 6 and Apache 2

ModSecurity is a web application layer firewall designed to work with IIS, Apache2 and Nginx. It...

Install CentOS Web Panel (CWP) on CentOS 6

CentOS Web Panel or CWP is an open-source hosting control panel which is designed for quick...