How to Check Internet Speed in Terminal

When you feels your internet become slower than before, you may need to check you internet speed. For that matter, is well-known speed test websites for broadbrand users. 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-cli is a simple CLI client for that written with Python for measuring bidirectional Internet bandwidth by using 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
$ chmod a+rx
$ sudo mv /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 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 *