You are here:

Running Speedtest in the VPS Terminal and Choosing Your Location

Running Speedtest in the VPS Terminal and Choosing Your Location

Let’s explore how to run a Speedtest via the command line. Follow these steps in your VPS terminal:

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

The output is displayed as follows.

The output of the speedtest after executing the initial command.

Indeed, it’s simple and easy!

You can even specify the Speedtest location you desire. For example, let’s say you want to test the connection speed between Dallas and Los Angeles.

Visit this webpage: http://www.speedtest.net/speedtest-servers-static.php[1] and use Ctrl+F to search for the location “Dallas”.

Note: If your browser shows a blank page, try using Firefox or a similar browser that supports viewing PHP files.

Remember the ID number associated with Dallas; it will be used later. For example, if the ID for Dallas is 10596, take note of this number.

The ID number associated with Dallas

Now, let’s return to the VPS terminal:

./speedtest-cli --server 10596

The result is displayed as follows.

Speed test in the VPS terminal

That concludes the process. If you have any further questions or need additional assistance, feel free to ask!

 

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

Was this article helpful?
Dislike 0