How to Install SpeedTest CLI
Step 1 – Login to your VPS as root or any user with superuser privilege (so you can use sudo). Windows users can make use of Putty while Linux and Mac can use Terminal.
tep 2– Download the SpeedTest Python-based script using wget command:
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py
Step 3 – Now do some chmod little trick:
chmod a+rx speedtest.py
Step 4 – Move the file to appropriate location:
mv speedtest.py /usr/local/bin/speedtest
Step 5 – Now chown the script to user and group root:
chown root:root /usr/local/bin/speedtest
That’s it.
Performing Speed Test
Use this basic magic command to conduct the test:
speedtest
But you can also generate a cool SpeedTest.net’s badge using this command:
speedtest --share