Linux See Bandwidth Usage Per Process With Nethogs Tool

The nethogs tool is a free, open-source utility for Linux that allows you to see the bandwidth usage of individual processes on your system. It provides a real-time view of the network traffic generated by each process, including the process name, pid, and the amount of bandwidth used in kilobytes per second.

Here’s how you can use the nethogs tool to see bandwidth usage per process on a Linux system:

  1. Install nethogs:
sudo apt-get install nethogs
  1. Run nethogs:
sudo nethogs

This will open a terminal-based interface that displays the real-time network usage of each process on your system. The list is updated in real-time, so you can see changes in network usage as they occur.

  1. Interpreting the output:

The nethogs interface displays the process name, pid, and the amount of bandwidth used in kilobytes per second. The interface also displays the total network usage of your system in kilobytes per second.

  1. Exit nethogs:

Press CTRL + C to exit the nethogs interface.

The nethogs tool is a useful tool for monitoring network bandwidth usage on a Linux system. It provides a simple, real-time view of the network traffic generated by each process, making it easy to identify processes that are using a lot of bandwidth and to troubleshoot network performance issues.

Leave a Comment