How to run speedtest in the VPS (terminal) and choose your location

Hi,

Here I would illustrate how we can run speedtest with command line.

Let's go to the terminal console in your vps:

type

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
./speedtest-cli

The picture is showed as follows. enter image description here

It is simple and easy, isn't it?

You even can specify the speedtest location which you desire for. For instance, you probably want to test the connection speed between Dallas and Los Angeles.

Go to this web page http://www.speedtest.net/speedtest-servers-static.php[1]

and press Ctrl+F to search the location "Dallas".

Note: If your browser shows blank here, try to use Firefox and such like which support viewing php file.

Remember the id number here because it would be used later. Here I take the number 10596 for Dallas location.

enter image description here

Then let's come to the terminal again in vps.

type:

./speedtest-cli --server 10596

The result is showed as follows. enter image description here

That's all.

[1]: http://www.speedtest.net/speedtest-servers-static.php

comments (1)

  • Ade

    - 5 years ago

    Iya