DATASEC
  • Blog
  • Cart
  • Checkout
  • My account
  • Shop

Day: October 24, 2014

Get Current Transfer Rates Bash

Posted on October 24, 2014October 12, 2017 by colin

Couple quick scripts to get current transfer rates on an interface in bash ###getRx.sh: #!/bin/bash get_ispeed(){ cat /sys/class/net/eth0/statistics/rx_bytes; } s1=`get_ispeed`; sleep 1s; s2=`get_ispeed`; d=$(($s2-$s1)); printf “%.3f kB/s\n” $(bc -l

Leave a comment

Posts navigation

Recent Posts

  • Install Mautic
  • Mautic – The site is currently offline due to encountering an error
  • Mautic Too Many Redirects after Update
  • Fix Webserver File and Folder Permissions
  • MySQL Add Database and User with Full Permissions

Archives

  • November 2017
  • October 2017
  • February 2015
  • January 2015
  • December 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014

Categories

  • Uncategorized

Recent Comments

    35 Hog Hill Rd. Pepperell, MA 01463
    Questions? Comments? support@datasec.io
    617.337.7333

    © Copyright 2017 DataSec, LLC