Setting up speed testing on Debian 8

Created - 02/23/2017

Last Tested - 03/02/2017

OS: Debian 8


To install.

apt-get install speedtest-cli

To run the speed test.

speedtest-cli

To run speed test and capture the results to a file.

cd
mkdir speed-test
cd speed-test
speedtest-cli > `date +%b_%d_%Y_%H_%M`.txt

So now lets auto run this at 12AM ever night and save the results.

cd
mkdir speed-test
cd speed-test
mkdir r
cd /root/speed-test
nano speedtest.sh
#!/bin/sh
speedtest-cli > /root/speed-test/r/`date +%b_%d_%Y_%H_%M`.txt
ctrl+x    Y
chmod +x speedtest.sh
./speedtest.sh
crontab -e     1
@daily /root/speed-test/speedtest.sh