In bash I can run time $(curl -L ...|bash) to find out the total time this script takes. Is there a way to get similar total information about the up/download traffic it generated?

Note that nethogs does not do what I need - it shows the traffic rates from time to time. I'd like the cummulative total of the traffic in/out.

  • What do you mean by from time to time? – Symin Jan 23 '13 at 4:26

Just keep the nethogs running.

You can change display modes by pressing M. The first default mode is kbps, after pressing M few times you can get total bytes.

Edit: added screenshots

KB/sec Total MB

  • I mean computers are discrete, so I couldn't say 'continuously' :) – hedgehog Jan 23 '13 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.