NetHogs: Bandwidth Stats by Process

Have you ever been messing around on your Ubuntu box, only to notice some sluggishness or some suspicious spikes in your internet connection, and wondered, “What the hell is using up all that bandwidth?” Or worse, “Have I been hacked?” If so, then NetHogs might be the program for you.


NetHogs is a lightweight Linux terminal-based tool that monitors bandwidth usage, then groups it by process, so you can see which PIDs are using the most bandwidth, and if necessary, kill them with System Monitor.

To install NetHogs on Ubuntu (tested on 9.10 Karmic), simply open a terminal and type:

sudo apt-get install nethogs

To run NetHogs, simply feed it the internet connection you wish to examine, and sit back.

sudo nethogs eth0

For more information and the full list of options, visit the NetHogs man page.

man nethogs


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s