Check Linux Website Connection Speed via Terminal

Ever wondered what is the connection speed of your website? If you want to check your website connection using the Linux command line, then this should help you out. Let’s proceed and check your linux website connection speed via terminal. SSH access is ofcourse is required.

First, SSH to your web hosting provider using Putty. Then copy the snippet provided below.

This uses the nearest servers listed on speedtest.net to test the download and upload speed of your website.

Check Linux Website Connection Speed via Terminal Result

$ ./speedtest --share
Retrieving speedtest.net configuration...
Testing from BuyVM (xxx.xxx.xxx.xx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Tekify Broadband Internet Services (Fremont, CA) [24.84 km]: 18.953 ms
Testing download speed....................
Download: 324.99 Mbit/s
Testing upload speed......................
Upload: 185.94 Mbit/s
Share results: http://www.speedtest.net/result/6081693429.png

Optional arguments

-h, –help show this help message and exit
–bytes Display values in bytes instead of bits. Does not
affect the image generated by –share, nor output from
–json or –csv
–share Generate and provide a URL to the speedtest.net share
results image
–simple Suppress verbose output, only show basic information
–csv Suppress verbose output, only show basic information
in CSV format. Speeds listed in bit/s and not affected
by –bytes
–csv-delimiter CSV_DELIMITER
Single character delimiter to use in CSV output.
Default “,”
–csv-header Print CSV headers
–json Suppress verbose output, only show basic information
in JSON format. Speeds listed in bit/s and not
affected by –bytes
–list Display a list of speedtest.net servers sorted by
distance
–server SERVER Specify a server ID to test against
–mini MINI URL of the Speedtest Mini server
–source SOURCE Source IP address to bind to
–timeout TIMEOUT HTTP timeout in seconds. Default 10
–secure Use HTTPS instead of HTTP when communicating with
speedtest.net operated servers
–version Show the version number and exit

Do remember that connection speed isn’t everything. Take in mind the CPU.

Leave a Reply