How to Test Your Internet Speed from the Command Line

How to Test Your Internet Speed from the Command Line

How to Test Your Internet Speed from the Command Line. In this article, you will read use Command Line to test the internet speed. With speedtest-cli you can run the internet speed test in the command prompt, on any operating system.

You can test the internet speed using a web browser. But, you will require command line to do this test, if you are connected to a server via ssh, and want to test speeds on that machine.

How to Test Your Internet Speed from the Command Line?

It is a very simple process, you just have to install the speedtest-cli. Just type:

How to Test Your Internet Speed from the Command Line - pic1

Then, press enter once you have speedtest-cli installed.

To install speedtest-cli on various operating system, go through the methods listed below.

Install speedtest-cli On Windows:

How to Test Your Internet Speed from the Command Line - pic2

To run a speed test on Windows using Command Line, you first have to install the Python. It means downloading the correct installer and ensuring that python and pip are both added to your system PATH. After that, installing speedtest-cli is a matter of running one command:

pip install speedtest-cli

Now use speedtest-cli on Windows.

Install speedtest-cli On MacOS:

You can install speedtest-cli on a Mac is using Homebrew. Open source package manager for Mac. Install nstall speedtest-cli with a simple command:

brew install speedtest_cli

Install speedtest-cli On Ubuntu:

To install speedtest-cli on Ubuntu (and other Debian-based distros), run the command:

sudo apt install speedtest-cli

How to Test Your Internet Speed from the Command Line - pic3