How to speedtest from the shell

The SpeedTest website uses a Flash program that may not work on many Linux browsers. If you prefer to check the download and upload bandwidth from the shell, that is easy.

Install the speedtest-cli Python module from PyPI:

$ sudo pip install speedtest-cli

Run the test:

$ speedtest-cli

Tried with: speedtest-cli 0.3.4 and Ubuntu 15.10