Ubuntu – How to you monitor total internet data usage across reboots


Some broadband providers impose a monthly download limit, charging extra if you go over. It is also quite easy to exceed some of the lower limits just by installing/updating packages and 'normal' browsing (which to me includes streaming TV programs and movies).

This means that you need to limit the amount you use the internet, yet it is hard to know when.

The System Monitor helps a bit with this by giving a total received/total sent in the networking section of the Resources tab. However, this is reset every reboot. It would be good if there was a way to have a monthly total received so you can know how close you are to exceeding your limit and maybe even be given warnings if it looks like you are going to exceed the limits.

Does anyone know of a way to achieve this?

Best Answer

You can check out vnstat. It is command-line based and is available in the repository.

You can start it with sudo vnstat -u -i [interface]

To see the stats sudo vnstat -i [interface]

Related Question