How To Test Your Internet Speed From Linux Command Line

Hi linux geek.

In this article we will teach you how to test your internet speed from the terminal. What tool are we going to use for the purpose of this test?

The tool we need is called speedtest-cli. It is a nice and simple python tool for testing internet bandwidth using speedtest.net servers. There are many useful features in this such as server ID specification to test against, verbose output and the one i like the most, sharing feature.

Download,Install And Use speedtest-cli

1. Download speedtest-cli with the wget command-line utility

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

how to test your internet speed from the terminal

2. Change file permissions to executeable

chmod +x speedtest-cli

how to test your internet speed from the terminal

3. Run an internet speed test with the following command.

./speedtest-cli

how to test your internet speed from the terminal

Results of my test are shown in the following screenshot.

how to test your internet speed from the terminal

Are you curious about the version of the tool? Then run the following command.

./speedtest-cli --version

how to test your internet speed from the terminal

Keep the output simple and clean with the --simple option.

./speedtest-cli --simple

how to test your internet speed from the terminal

Do you like to share the results of the test with your friends? Then use the following command to get a nice high quality screenshot. Note: The --simple option can be removed.

./speedtest-cli --simple --share

how to test your internet speed from the terminal

how to test your internet speed from the terminal

About Oltjano Terpollari

Oltjano Terpollari is a very passionate computer geek studying python, linux, netcat power tools and living a binary life. He goes by the nickname Ambition and is very happy living a science life. He also loves technical blogging and sharing his knowledge with others.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.

1 Comment