nethogs
A network monitoring tool that displays bandwidth usage per process, showing which running applications are consuming network traffic in real time.
nethogs is a command-line network profiler that breaks down network bandwidth usage by individual processes rather than by protocol or interface. It helps you identify which applications are responsible for network activity on your system.
Unlike traditional tools like iftop or ifstat that show aggregate network statistics, nethogs associates each packet with the process that generated it, making it invaluable for troubleshooting network congestion or detecting unexpected data transfers.
Example usage: sudo nethogs launches an interactive display showing PID, process name, and sent/received bandwidth. You can filter by network interface (e.g., sudo nethogs eth0) or sort columns interactively.