

Bandwidth per socket connection - iftop, iptraf, tcptrack, pktstat, netwatch, trafshowģ. Overall bandwidth (batch style output) - vnstat, ifstat, dstat, collectlĢ. Overall bandwidth - nload, bmon, slurm, bwm-ng, cbm, speedometer, netloadĢ. Here is a list of the commands, sorted by their features. Some of the tools like nload read the “/proc/net/dev” file to get traffic stats, whereas some tools use the pcap library to capture all packets and then calculate the total size to estimate the traffic load. The tools have different mechanisms of generating the traffic report. This makes it easy to detect a process that is overusing network bandwidth. Some of the commands, show the bandwidth used by individual processes. Incoming and outgoing traffic is shown separately. These tools monitor the traffic flowing through network interfaces and measure the speed at which data is currently being transferred. Pick the command that works with your system’s package manager.This post mentions some linux command line tools that can be used to monitor the network usage.

Once your terminal is open, you can go ahead and install Nethogs. Just press CTRL + ALT + T and your default terminal emulator should open right up. If that’s something you’re interested in doing, a search engine will help you get there. It’s possible to use Nethogs without sudo, but we won’t be covering that here. We’ll be using ‘sudo’ for all of these commands.

(There’s a future article about top and htop, when I get to it.) But, Nethogs is like a system monitor, except it’s a network monitor with some visual similarity with top. I suppose that’s mostly useful to those who know what ‘ top‘ is. Nethogs – Net top tool grouping bandwidth per process Feel free to leave a comment telling us how you intend to use Nethogs.Īs stated, we’ll be using Nethogs. There are all sorts of reasons to monitor your network usage at this level. You might also be looking for rogue applications/malware that’s using up some of your bandwidth. Not everyone has unlimited bandwidth after all. Why would you want to monitor this? Well, you may want to know which applications are eating up most of your bandwidth. It’s actually easier than one might think and we’ll even show you how to install Nethogs on a variety of distros.

Today’s article is going to tell you how to use Nethogs to monitor network usage on a per-application basis.
