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.


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

  • ...where is that? – hhh Sep 29 '12 at 18:55
  • @hhh see the edit – Anwar 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 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.