Monitor network usage in Ubuntu

Many a times when we are using our computer for surfing the internet, or other network activities, we feel that though we have a good internet connection, but the browsing speed is not good.

It may happen so that the bandwidth is being consumed by some unwanted application or process running in the background and little or no bandwidth is left for the browser.

But how can we diagnose which application is making how much usage of the internet bandwidth?

Luckily there is a small application available for Ubuntu which does the real time monitoring of the internet bandwidth usage and displays it for you on the screen. The application is “NetHogs”.


 

For installing use the following steps:-

  • Open a new terminal window using key combination Ctrl+Alt+t
  • On the command prompt issue the command :- sudo apt-get install nethogs
  • After the installation is over, just issue the command :- sudo nethogs
  • Real time data usage of the network will be displayed in the terminal
  • To close the application use key combination Ctrl+c

Once you have the details of the applications or processes hogging you bandwidth, you can close them or selectively kill them.