Snippets

Imre Csige Speedtest.net internet speed logger for Ubuntu

Created by Imre Csige
#!/bin/bash

# This simple bash script logs your internet speed to a file with a timestamp. 
# Call it with cron to periodically log you internet speed.
# Modify as needed.

# Requires 'speedtest' CLI, so install it with 'sudo apt-get install speedtest-cli' or 'sudo apt install speedtest'

# Log date into the file
date | tee -a speedtest.log
# Log the speed output into the file
speedtest | tee -a speedtest.log

# Make it pretty
echo "--------------------------------------------------------------------" | tee -a speedtest.log

# That's it

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.