How-To: find which program consumes your bandwidth with nethogs

less than 1 minute read

Let’s continue the network monitoring serie with yet another use case…. the “What program is using my bandwidth?” problem while not imposible to solve, still remains a pain. What if there were some kind of top for network?

NetHogs is a nifty tool that will do that for you and will help you finding what is hogging your connection.

Like most network monitoring programs, nethogs relies on libpcap to sniff the network, which means that the program needs to be run with root privileges.


There is a deb packages on debian repositories, so installing nethogs is as straight as:

# apt-get install nethogs

Now you should be good to run nethogs


nethogs When running nethogs, you can specify the interfaces you want to monitor the traffic on. By default, it will use eth0.

# nethogs eth0

Is all you need to get running. Once the program is running, you can use the key m to switch between 2 modes:

  • kb/s
  • total usage

The application is pretty simple and have limited feature, but it gets the job done.