/ Published in: Bash
Found on command line fu
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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/