How to Check Internet Speed in Terminal

By | June 6, 2015

When you feels your internet become slower than before, you may need to check you internet speed. For that matter, Speedtest.net is well-known speed test websites for broadbrand users.

Speedtest.net loads Javascript to your web browser to automatically select which server is closest to you and it will measure you internet speed by sending HTTP GET and POST request to your server.

But how check your internet speed if you wish to test your internet speed on your VPS and your VPS is a GUI-Less system ? The answer is speedtest-cli, this little program is the command-line interface version of Speedtest.net.

speedtest-cli is a simple CLI client for speedtest.net that written with Python for measuring bidirectional Internet bandwidth by using speedttest.net infrastructure. It works with Python 2.4-3.4.

How to Check Internet Speed in Terminal

How to Check Internet Speed in Terminal

So Follow this quick post and I will show you How to Check Internet Speed in Terminal.

Install speedtest-cli on Linux

Installing latest speedtest-cli is easy, you can do it by downloading the script with these command below.

$ wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
$ chmod a+rx speedtest_cli.py
$ sudo mv speedtest_cli.py /usr/local/bin/speedtest-cli
$ sudo chown root:root /usr/local/bin/speedtest-cli

Test Internet Speed with speedtest-cli

You can run speedtest-cli without any arguments to check your internet connection.

$ speedtest-cli

This command will automatically discover the closest Speedtest.net server and report download upload speed directly to your terminal.

But what if you want to share your speed test results ?, you can use –share option at the end on the command like this:

$ speedtest-cli --share

This command will give you an image format to your working directory.

 

Leave a Reply

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