Last Updated on January 13, 2017 by admin
Checking the Internet connection speed is usually a cake walk - all you have to do is to head to a website that's specifically does this (like this one) and start the test by clicking a button. But what if your system does not have a GUI. I mean, what if you only have access to the command line?
If you are looking for a way to check the download and upload speed of your Internet connection using the Linux command line, then you'll be glad to know that we'll be discussing exactly that in this article. But before we move ahead, keep in mind that all the instructions and commands mentioned in this tutorial have been tested on Ubuntu 14.04 LTS.
Check Internet speed from Linux command line
To do this, you have to first download and install a command line utility dubbed Speedtest-CLI. According to the tool's GitHub page, Speedtest-CLI is a "command line interface for testing internet bandwidth using speedtest.net."
Here's how you can download and install the tool on your Linux system:
pip install speedtest-cli
Please note that pip is a utility that allows you to install and manage Python packages. In case it's not there on your system, you can install it using the following command:
sudo apt-get install python-pip
There are several others ways to download and install Speedtest-CLI - head here to know more about them.
Once installed, you can launch the tool in the following way:
The aforementioned command will take some time, but will finally produce the download as well as upload speed of your Internet connection.
The following screenshot shows Speedtest-CLI in action:
Following are the command line options this utility provides: