test internet speed command line

Today, we will learn how to test internet speed from the command line via Terminal in various popular Linux distributions including Ubuntu, Fedora, and Arch Linux. Note that since internet speed is measured by actually uploading and downloading from a server, you need to install a third party utility which will download and upload test data to its server, measuring the transfer speed. Let’s get started.

Testing Internet Speed in Ubuntu, Linux Mint, and elementary OS

This guide is tested on Ubuntu 17.10, but should work on older versions, and also in Ubuntu derivatives including Linux Mint, elementary OS, etc..

Step 1) Launch ‘Terminal’.

Step 2) I recommend installing ‘Speed test’ command line utility which has been around for a while and trustworthy. Use this command:

sudo apt install speedtest-cli

You must enter the root password to complete installation.

Step 3) After the installation is complete, go ahead and start testing the internet speed. Use the command command in the Terminal.

speedtest

Output:

Retrieving speedtest.net configuration...
Testing from Time Warner Cable (xxx.xx.xxx.xx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by BrescoBroadBand (Columbus, OH) [xx km]: xxx ms
Testing download speed................................................................................
Download: 18.62 Mbit/s
Testing upload speed................................................................................................

Testing Internet Speed in Fedora and derivatives

This guide is tested on Fedora 27, but should work on older versions too.

Step 1) Launch ‘Terminal’.

Step 2) We shall use the same utility ‘Speedtest’ in Fedora too. Speedtest utility is written in Python, and so you need to first install Python in your computer.

sudo dnf install python

Step 3) Install speedtest utility:

sudo dnf install speedtest-cli

Step 4) Launch the utility:

speedtest-cli

Output:

READ  How to execute a .run or .bin package in Linux
Internet speed test Fedora 27 Terminal
Internet speed test Fedora 27 Terminal

Testing Internet Speed in Arch Linux, Manjaro, and derivatives

This guide is tested on Manjaro 17, but should work on older versions, Arch Linux, and derivatives too.

Step 1) Launch ‘Terminal’.

Step 2) Enter the following command to download ‘Speedtest’ utility using wget command.

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

Step 3) Make the downloaded content executable using chmod +x command.

chmod +x speedtest-cli

Step 4) Finally launch Speedtest to test your internet speed.

./speedtest-cli
Speedtest installation and internet speed test in Manjaro 17.0.2 GNOME terminal
Speedtest installation and internet speed test in Manjaro 17.0.2 GNOME terminal

That’s it!

Previous articleCheck if a Linux PC is 64-bit or 32-bit by command-line
Next articleStacer – Simplest way to optimize and cleanup Linux OS
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

Leave a Reply

avatar
  Subscribe  
Notify of