3 Ways to Test Your Internet Speed on Linux

  3 mins read  

3 Ways to Test Your Internet Speed on Linux

Every day we doubt our ISP if it is really delivering the bandwidth we hire.

And the best way to keep an eye on this is to constantly monitor using some quick and easy tool.

We will know 3 excellent tools for this via the command line.


1. Speedtest

speedtest-cli is an open source command line interface for testing Internet bandwidth that can also be used directly by the browser. It is a quick little tool to check the download and upload speed.

speedtest-cli is available in most distros and can be easily installed using the package manager.

In Gentoo just install it with Portage:

su
emerge speedtest-cli

In Debian/Ubuntu, you can use the following procedure:

sudo apt-get install gnupg1 apt-transport-https dirmngr
export INSTALL_KEY=379CE192D401AB61
export DEB_DISTRO=$(lsb_release -sc)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY
echo "deb https://ookla.bintray.com/debian ${DEB_DISTRO} main" | sudo tee  /etc/apt/sources.list.d/speedtest.list
sudo apt-get update
sudo apt-get install speedtest

In Fedora/CentOS/RedHat:

sudo yum install wget
wget https://bintray.com/ookla/rhel/rpm -O bintray-ookla-rhel.repo
sudo mv bintray-ookla-rhel.repo /etc/yum.repos.d/
sudo yum install speedtest

In FreeBSD:

sudo pkg update && sudo pkg install -g libidn2 ca_root_nss
sudo pkg add "https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-freebsd.pkg"

For any other distro you can download it via the command line and to install:

# 64-bit
wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz

# 32-bit
wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-i386-linux.tgz

Speedtest


2. Fast

Fast is an open source CLI utility developed by Netflix’s fast.com service and you can also access it directly from the browser.

Fast is the perfect tool for those who just want to check the download speed in a very simple way.

To use it via the command line you will need npm properly installed on your system and then run command:

sudo npm install --global fast-cli

You can also install it using the snap:

sudo snap install fast

After installed you can run via command line:

fast

Fast


3. LibreTest

LibreTest is open source and does not use Flash, Java and Websocket. It can be accessed directly by the browser and used via the command line according to additional tools that implement it.

Its differential is that you can use it on your server and offer as a service and use curl via the command line pointing to your server (this procedure is outside the scope of this article).

LibreTest


Thanks for reading!

Add our feed: https://en.terminalroot.com.br/feed to:

Feedly