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
linuxtechi@node1:~$ wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py linuxtechi@node1:~$ chmod +x speedtest-cli
Now test Internet Speed by executing the below command:
linuxtechi@node1:~$ ./speedtest-cli
Generate the result of Internet Speed in an Image hosted on speedtest.net
linuxtechi@node1:~$ ./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.
linuxtechi@node1:~$ ./speedtest-cli --list
Check Internet Speed against the Specific Server.
linuxtechi@node1:~$ ./speedtest-cli –server <Server ID>
Use the server ids listed in the above example.
linuxtechi@node1:~$ ./speedtest-cli --server 2608
Getting help and Options used in Speedtest.cli
linuxtechi@node1:~$ ./speedtest-cli --help