Test Internet Speed from the Terminal on Ubuntu Linux

We generally use flash based websites (like speedtest.net & whatismyip.com) to test our Internet speed but as Linux admin we love to test Internet speed from the command line or terminal.

speedtest.cli is command line tool which is used to test Internet bandwidth from the terminal on Linux like Operating system. In this post we will discuss how to install and use speedtest.cli on Ubuntu Linux.

Download the Script Speedtest.cli & assign Execute Permissions
[email protected]:~$ wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
[email protected]:~$ chmod +x speedtest-cli
Now test Internet Speed by executing the below command:
[email protected]:~$ ./speedtest-cli


Generate the result of Internet Speed in an Image hosted on speedtest.net
[email protected]:~$ ./speedtest-cli --share


Go to Link https://www.speedtest.net/result/4215178617.png , there you will see the result of your internet speed as an image as shown below.


Show the list of ‘speedtest.net’ Servers against which we can test Internet Speed.
[email protected]:~$ ./speedtest-cli --list


Check Internet Speed against the Specific Server.

[email protected]:~$ ./speedtest-cli –server <Server ID>

Use the server ids listed in the above example.

[email protected]:~$ ./speedtest-cli --server 2608


Getting help and Options used in Speedtest.cli
[email protected]:~$ ./speedtest-cli --help


Leave a Reply

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