Linux Commands and Scripts

Steps to Check internet speed in Linux

In this article, we’ll explain how to check internet speed in Linux.

If you want to check your internet speed in Linux, this article will guide you. This is an open-source tool that enables you to check your internet and network speeds at the command line is Speedtest. For this demonstration purpose, we’re using CentOS 8 OS. You can follow these steps on any Linux platform but the command may change according to your Linux distro.

Speedtest

Speedtest is an old favorite. It’s implemented in Python, and also available with pip. You can use it as a Command line interface for testing internet bandwidth using speedtest.net. speedtest-cli works with Python 2.4-3.7

Installation using pip command:

Install pip

For CentOS 8 use following command:

# dnf install python3-pip -y

Install speedtest-cli using pip3 command like shown below:

# pip3 install speedtest-cli -y

Test the internet speed using following command:

# speedtest

If you need further help, use following command:

# speedtest-cli -h

Install by downloading from Github

You can install speedtest-cli by downloading from github.

# wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
# chmod +x speedtest-cli

Test the internet speed using following command:

# speedtest

This gives you your download and upload Internet speeds. It’s fast and scriptable, so you can run it regularly and save the output to a file or database for a record of your network speed over time.

That’s it.

In this article, we have seen how to check internet speed in Linux.

Get a high performance dual E5 series dedicated server and cheap KVM VPS.

Related Articles