NetHogs is a free and open source real time command-line network bandwidth and statistics application for Linux. It groups and shows bandwidth by per process. So you can easily view, identify and monitor network heavy programs via PID. In this article we will see how to install and use NetHogs on your Ubuntu system. It is released under GNU General Public License v2.0.
How to install NetHogs on Ubuntu Linux
Open the terminal command-line application. You can open it via the applications menu or via pressing ctrl+alt+t keys together. Then run below command to update your Ubuntu software source list.
sudo apt update
After that run below command to install NetHogs. It will install the latest version of NetHogs on your system.
sudo apt install nethogs
then run NetHogs using this command in terminal.
Using the -d, you can add a refresh ratein your output. To set 10 seconds as your refresh rate, then type the command as.
sudo nethogs -d 10
You can also monitor specific device interface (ex:eth0) by using below command.
sudo nethogs eth0
You can activate the tracemode by using below command.
sudo nethogs -t
For the complete usage details run below command in terminal.
sudo nethogs -h