nethogs
Nethogs is a command line tool used for monitoring network traffic and bandwidth usage. It provides real-time information about the processes or applications that are consuming the network resources. By default, it displays the current network usage in kilobytes per second for each process. The tool allows users to monitor network usage on a per-process or per-connection basis, making it easier to identify which programs or connections are using the most bandwidth. Nethogs also provides additional information such as total sent and received bytes, packets, and protocol information. It can be particularly useful for sysadmins and network administrators to troubleshoot network performance issues and identify potential bandwidth hogs. It supports both IPv4 and IPv6, and users can also specify network interfaces to monitor in case of multiple interfaces being available. Lastly, nethogs is lightweight and easy to use, making it a convenient tool for network monitoring from the command line interface.
List of commands for nethogs:
-
nethogs:tldr:284a5 nethogs: Specify refresh rate.$ sudo nethogs -t ${seconds}try on your machineexplain this command
-
nethogs:tldr:35df3 nethogs: Monitor bandwidth on multiple devices.$ sudo nethogs ${device1} ${device2}try on your machineexplain this command
-
nethogs:tldr:5723d nethogs: Monitor bandwidth on specific device.$ sudo nethogs ${device}try on your machineexplain this command
-
nethogs:tldr:a8450 nethogs: Start nethogs as root (default device is eth0).$ sudo nethogstry on your machineexplain this command