Network Usage by Process - Nethogs

Written by Peter Davies on .

Reading an article on my phone I remembered just how useful this network usage by process tool actually was. Installation could not be simpler:

root@server:~# apt-get install nethogs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpcap0.8
The following NEW packages will be installed:
  libpcap0.8 nethogs
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 171 kB of archives.
After this operation, 445 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://mirror.ox.ac.uk/debian/ wheezy/main libpcap0.8 amd64 1.3.0-1 [142 kB]
Get:2 http://mirror.ox.ac.uk/debian/ wheezy/main nethogs amd64 0.8.0-1 [29.4 kB]
Fetched 171 kB in 0s (356 kB/s)
Selecting previously unselected package libpcap0.8:amd64.
(Reading database ... 88613 files and directories currently installed.)
Unpacking libpcap0.8:amd64 (from .../libpcap0.8_1.3.0-1_amd64.deb) ...
Selecting previously unselected package nethogs.
Unpacking nethogs (from .../nethogs_0.8.0-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up libpcap0.8:amd64 (1.3.0-1) ...
Setting up nethogs (0.8.0-1) ...

root@server:~# nethogs

And the resulting output shows something like:

Nethogs