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

My university internet connections such as Eduroam and Aalto Open are extremely poor so I use prepaid-services, less lag. Now I may run out of prepaid time so how can I measure the amount of traffic consumed in Ubuntu?

I am actually using Debian but probably no difference in traffic -monitoring.

share|improve this question
up vote 5 down vote accepted

You can use System monitor to see the traffic used in a single session. Use gnome-system-monitor to open it in a terminal.

You a totalistic view of usage, you can use ipac-ng. Install it with the command

sudo apt-get install ipac-ng

Here is a good guide about usage of this software.

Alternatively, You can also use vnstat. Install it wit the command:

sudo apt-get install vnstat

To start vnstat cron job, you would use this simple command:

sudo vnstat -u -i eth0

Replace eth0 with the actual interface for you. It is eth1 for me. This job will run every five minutes measure and update the usage data. At any given time you can use vnstat command to see the usage.

A good guide about using vnstat is here. You can also check Ubuntu manual page for vnstat

share|improve this answer
...where is that? – hhh Sep 29 '12 at 18:55
@hhh see the edit – Anwar Shah Sep 29 '12 at 18:56
+1 thank you, solved ...could not find ipac-ng but the gnome -thing worked. – hhh Sep 29 '12 at 18:59
...still 6 minutes waiting... – hhh Sep 29 '12 at 19:00
+1 Good answer. Here's a way to make a keyboard short-cut for launching System Monitor. – Tom Brossman Sep 29 '12 at 19:01

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.