Getting the link speed from the terminal
To get your internet speed from the terminal there is a tool called speedtest-cli
and we can set it up as below:
$ wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
$ chmod +x speedtest-cli
Here is an output of it working:
$ ./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Comcast Cable (x.x.x.x)...
Selecting best server based on ping...
Hosted by FiberCloud [12.03 km]: 44.028 ms
Testing download speed.......................
Download: 32.29 Mbit/s
Testing upload speed...........................
Upload: 5.18 Mbit/s