Measures download speed on eth0


/ Published in: Bash
Save to your folder(s)

Found on command line fu


Copy this code and paste it in your HTML
  1. while true; do X=$Y; sleep 1; Y=$(ifconfig eth0|grep RX\ bytes|awk '{ print $2 }'|cut -d : -f 2); echo "$(( Y-X )) bps"; done

URL: http://www.commandlinefu.com/

Report this snippet


Comments


You need to login to view comments.