nethogs:tldr:5723d
nethogs: Monitor bandwidth on specific device.
$ sudo nethogs ${device}
try on your machine
The sudo nethogs ${device}
command is used to run the nethogs
tool with superuser (root) privileges on a Linux system.
nethogs
is a command-line tool that allows you to monitor network traffic on a per-process basis. It displays real-time information about the network bandwidth usage of each process in your system.
The ${device}
in the command refers to the network interface/device that you want to monitor. You need to replace ${device}
with the actual name of the network interface you want to monitor, such as eth0
or wlan0
.
By running the command with sudo
, you grant the necessary permissions to nethogs so that it can access network socket information, which is typically restricted to root or superuser.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.