If you are used to the popular “SpeedTest.net” Web site to test your bandwidth connection, then here is how to use the same tool but using your Linux terminal.
- Download the python script :
wget http://download.alex-rusli.com/public/script/speedtest_cli.py
.
- Make it executable :
chmod +x speedtest_cli.py
.
- Run the test using the script :
./speedtest_cli.py
.
- The output should look like this :
# ./speedtest_cli.py
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Unified Layer (xxx.xxx.xxx.26)...
Selecting best server based on ping...
Hosted by C7 Data Centers (Salt Lake City, UT) [60.46 km]: 20.981 ms
Testing download speed........................................
Download: 958.55 Mbits/s
Testing upload speed..................................................
Upload: 690.35 Mbits/s
.