NetHogs is a Linux command-line tool that is used to monitor the network bandwidth consumed by each process or application in real-time. It is an open-source tool that can be used with almost all the available Linux distribution.
Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform related Linux system network monitoring queries.
In this context, we shall look into the procedure of installing and using the NetHogs utility on a Linux Mint 20 system.
To install the NetHogs network bandwidth monitoring utility on a Linux Mint 20 machine, the following steps are to be performed on the target system.
1. Perform System Update
To begin, you need to ensure that you have an updated Linux Mint 20 system. For that, it is strongly recommended to run the below "update' command:
$ sudo apt update
2. Install NetHogs on your Updated System:
On an updated Linux Mint 20 system, you can install the NetHogs utility simply by executing the following command:
$ sudo apt-get install nethogs
3. Verify NetHogs Installation
Once you have managed to install the NetHogs utility on your system, you can check its version by running the below command:
$ nethogs –V
This command will display the exact version of NetHogs utility installed on your Linux Mint 20 system.
Now, when we have the NetHogs utility installed on our system, we can check out the different options that we can use with this utility by accessing its help manual with the below command:
$ nethogs --help
Here, for running NetHogs utility on your Linux Mint 20 system solely for querying the network bandwidth usage, you can execute the below command:
$ sudo nethogs
The NetHogs network bandwidth monitoring tool can be removed from your Linux Mint 20 system by executing the below command:
$ sudo apt-get purge --autoremove nethogs
This article covers how to install the NetHogs network bandwidth monitoring utility very easily on your Linux Mint 20 system. In fact, you will be able to get the network bandwidth usage in real-time very efficiently without any sort of hassle.