Installation speedtest-cli
speedtest-cli is a lightweight Linux command line tool written in Python, Python2.4 to operate over the 3.4 version. It is based on measuring the infrastructure Speedtest.net / down rate of the network. Speedtest-cli installation is very simple - just download the Python script file.
# wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
# chmod +rx speedtesti.py
# sudo mv speedtest.py /usr/local/bin/speedtest-cli
# sudo chown root:root /usr/local/bin/speedtest-cli
Use network speed test speedtest-cli
Use speedtest-cli command is very simple, it does not require any parameters to work.
# speedtest-cli
After you enter this command, it will automatically find your nearest Speedtest.net server (geographical distance), then print out a test on the network / downlink rate. Note: As some test point is abroad, need to repeatedly test, the result was correct.