David's Blog

Thoughts on all kinds of stuff

NetHogs - list network traffic grouped by process

April 06, 2021 — David Leutgeb

Recently I discovered NetHogs, a linux tool, that is really useful for listing traffic usage grouped by process.

Install NetHogs

On Debian and Ubuntu NetHogs is already in the repos, so installation is quite simple.

sudo apt install nethogs

Running NetHogs

After you have installed NetHogs run (as root) it with:

sudo nethogs

Overview of NetHogs running

After running NetHogs shows shows a realtime overview of the traffic used by any process. This can be very useful, for example for a security analysis of the system. Or simple to get the program which is using your traffic.

Tags: linux, security, tools, network