Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.