Command line based bandwidth speed test

Speedtest-CLI

Simply retrieve the python script:

wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py

Then make the downloaded script executable and execute it (the below commands assume you’re in the same directory as the downloaded file):

chmod +x ./speedtest-cli
./speedtest-cli

Execute the command and enjoy a hassle-free, simple bandwidth speed test application from your shell prompt.

(Source)