ShareIf you're new here, you may want to subscribe to my RSS feed and if you have questions related to your ubuntu system post question to our forums. Thanks for visiting!
{lang: 'en-GB'}
NetHogs is a small ‘net top’ tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. NetHogs does not rely on a special kernel module to be loaded. If there’s suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to indentify programs that have gone wild and are suddenly taking up your bandwidth.
Since NetHogs heavily relies on /proc, it currently runs on Linux only.
Install nethogs in ubuntu
Open the terminal and run the following command
sudo apt-get install nethogs
Syntax
nethogs [-d] [-h] [-p] [-t] [-V] [device(s)]
Options
The -d switch delay for refresh rate.
The -h switch display available commands usage.
The -p switch sniff in promiscious mode (not recommended).
The -t switch tracemode.
The -V switch prints Version info.
Screenshot

Related posts
Holy cow! I’ve been looking for this app for last 2 years.
Thank you a lot.
[Reply]
This app is absolute awesomeness. Other bandwidth monitors I have used have reported wrong on upload and I thought I had a leak or was hacked or that something was wrong. With nethogs I now have full control over my network connection and what processes that uses it.
I highly recommend this.
[Reply]