Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
What do you mean by from time to time? – Symin Jan 23 '13 at 4:26
up vote 3 down vote accepted

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

share|improve this answer
I mean computers are discrete, so I couldn't say 'continuously' :) – hedgehog Jan 23 '13 at 7:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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