nethogs
network monitoring tool that groups bandwidth usage by process rather
TLDR
Start NetHogs (default device eth0)
SYNOPSIS
nethogs [-d seconds] [-t] [-v] [device...]
DESCRIPTION
nethogs is a network monitoring tool that groups bandwidth usage by process rather than by interface or protocol. It shows which processes are consuming network bandwidth in real-time.
Unlike traditional network monitors that show per-interface statistics, nethogs identifies the actual programs responsible for network traffic, making it easier to find bandwidth-hungry applications.
PARAMETERS
-d _seconds_
Delay between refreshes in seconds; default is 1-t
Tracemode; output to stdout continuously-v
View mode; cycle through views (0-2)-c _count_
Number of updates before exiting-p
Promiscuous mode (capture all packets)-s
Sort by sent data-a
Monitor all devices
INTERACTIVE COMMANDS
q
Quits
Sort by sent bytesr
Sort by received bytesm
Cycle display mode (KB/s, KB, B, MB)
CAVEATS
Requires root privileges to capture network packets. May not accurately track all traffic on busy systems. Only monitors TCP and UDP traffic. Some short-lived connections may be missed.
HISTORY
nethogs was developed by Arnout Engelen as a "net top" tool that groups bandwidth by process. It fills a gap left by traditional tools like iftop and nload which show interface-level statistics.
