Installing speedtest-cli Using pip command:
First, install pip with the following command:
sudo apt-get install python-pip
Once pip installed, now install speedtest-cli by using pip command:
sudo pip install speedtest-cli
Installing speedtest-cli Manually
To installing speedtest-cli in manually method you need to download the latest speedtest-cli python script from github:
sudo wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
make speedtest_cli.py executable
sudo chmod a+rx speedtest_cli.py
Move speedtest_cli.py to directory /usr/bin
sudo mv speedtest_cli.py /usr/bin/speedtest-cli
Test Connection Speed using Speedtest-cli
It is easy to check internet speed with speedtest-cli. Just type command speedtest-cli without any arguments.
speedtest-cli
After execute this command it will automatically detect locate the closest of Speedtest server (in terms of geographical distance) and show the report download speed an upload speed