How Can I count the received data from the internet.
I want to run my bash script and count how many MB it receive.
It could be stats for whole system.
This question came from our site for professional and enthusiast programmers.
watch your network devices
or better use
create a counter rule with no
than watch them with
(for playing with iptable, root access is needed).
You can use pv command, see man pv(1) page. Also you can try different bandwidth monitoring tools.