nethogs is a Linux command-line utility that allows you to monitor and analyze network traffic usage at the process level. It lets you know which processes or programs are consuming the most network traffic, and monitors and displays the data transfer rate for each process in real time.
Some of the main features of the nethogs program:
The nethogs program can be useful for tracking and identifying processes that use network bandwidth, as well as for diagnosing and solving network traffic problems.
To install the nethogs program on Linux, you can use the package manager that is available in your distribution. Here are some commands to install nethogs on different distributions:
For Debian/Ubuntu and its derivatives, use the apt
command:
sudo apt-get install nethogs
For Fedora and CentOS, use the yum
command:
sudo yum install nethogs
For openSUSE, use the zypper
command:
sudo zypper install nethogs
After successful installation, you can run nethogs from the command line with the following command:
sudo nethogs
The program will display information about the processes using network traffic and their corresponding statistics. Note that superuser(root
) privileges may be required to install the packages.