Nethogs: watch who consumes your network bandwidth

network cabling

We all know the top command, which presents us with a list of processes that consume memory and CPU to monitor the performance consumption of each program and to be able to manage the computer in this sense. And you will also know the tool included in Android that monitors the network consumption of each app that we have on our device. Well nethogs is precisely a mix between both.

Therefore, nethogs is a tool that can be run in text mode from our console and that lists all the active processes on the computer that are consuming part of the network bandwidth. This is very useful to know the cause of a speed drop in your connection and to locate the cause of an anomalous consumption or to see if any "Weird" process is consuming network resources without your consent. 

For its installation in Ubuntu or any other distro based on DEB packages and APT manager, it can be used from the terminal:

sudo apt-get install nethogs

In case you use another distro, like for example openSuSE, you can use the one-click download and installation method offered by said distribution, for this you only have to access following link.

To use it, we can use the program manual to see the many options available to us. But the most basic thing is to invoke it like this for easy monitoring:

sudo nethogs

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Alfred said

    Thank you very much for the very useful info about this command ... I just discovered this page, added to my linux favorites from today.

    Thanks.!!!

  2.   Wilmer medina said

    We do not understand the idea of ​​placing a title that does not correspond to the information.

    Spanish is very extensive and beautiful, I think that laziness makes us not use it correctly.

    In my humble opinion I consider a mistake what they put as title, I think it should say "Watch what your bandwidth consumes in the connection", referring to the processes.

    I also consider that if you are going to give explanations of a command you should try it so that you understand how it works and then recommend it, not all users have the ability to find the correct way of use that you do not explain (if you tried it, I apologize).

    The correct way to use the command is the one you indicate, if and only if the connection we make is through the network cable (eth0), if we are on WiFi the command does not work that way, in this case the network device by default it is wlan0, when executing it it gives an error.

    In my case to make the command work is:

    sudo nethogs wlan0

    For more help with the command

    sudo nethogs --help

    The page is good, it would be interesting to continue with you and see how you evolve.

    Thank you

  3.   viddeveloper said

    Thanks for the tip. ;).

    Regards,