Track traffic usage in Linux

We recommend installing a software on your server to keep track of how much bandwidth you are using. There are many open source solutions available one of them is vnStat.


vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface. It uses the network interface statistics provided by the kernel as information source. This means that vnStat won’t actually be sniffing any traffic and also ensures light use of system resources.


Ubuntu/ Debian:

cd /usr/local/src
tar -zxvf vnstat-1.10.tar.gz
cd vnstat-1.10
make && make install
vnstat -u -i eth0
chmod 700 /usr/bin/vnstat
chmod 700 /var/lib/vnstat/ -R


  • 127 Users Found This Useful
Was this answer helpful?

Related Articles

Direct emailing

Direct email delivery is disabled on the network for server packaged ordered after 5/15/2012....

Check and open ports in CentOS / Fedora / Redhat

  If you want to open or close a port for a Linux firewall you have to edit the rules in the...

Get started with your Control Panel (Webmin/cPanel)

  Webmin: Webmin is disabled by default, you will have to enable it: - Access the server via...

Run File System Check in Linux

  # fsck fsck is used to check and optionally repair one or more Linux file systems....

How to restart Webmin

Here is a little helper if your Webmin does not respond. Just run this command from the...