nethogs Command Examples in Linux

“nethogs” is a Linux tool that allows system administrators to monitor bandwidth usage on their systems, per process. This means that it shows the amount of network bandwidth that each process is consuming in real-time.

“nethogs” provides a simple and intuitive interface that displays the process name, its PID (process ID), the amount of data it has received, the amount of data it has sent, and the total amount of data it has used. This information is updated in real-time, allowing system administrators to quickly identify which processes are using the most bandwidth and taking up resources on their systems.

“nethogs” can be especially useful for system administrators who want to identify the cause of slow network performance, monitor bandwidth usage by different applications, or optimize their network usage by limiting the bandwidth available to certain processes. It can also be used to diagnose network issues and track down rogue processes that may be consuming excessive bandwidth.

nethogs Command Examples

1. Start nethogs as root (default device is eth0):

# sudo nethogs

2. Monitor bandwidth on specific device:

# sudo nethogs device

3. Monitor bandwidth on multiple devices:

# sudo nethogs device1 device2

4. Specify refresh rate:

# sudo nethogs -t seconds
Related Post