Skip to content

Instantly share code, notes, and snippets.

@davydany
Last active September 7, 2017 17:17
Show Gist options
  • Save davydany/6b8fe3fce9611fbb0cdd693b251e767c to your computer and use it in GitHub Desktop.
Save davydany/6b8fe3fce9611fbb0cdd693b251e767c to your computer and use it in GitHub Desktop.
Linux Tools

Tools for Network Monitoring

The purpose of this document is to show utilities that are available in the Linux world to monitor network traffic (so we're not reinventing the wheel).

Here are some good resources to read, but this file contains my favorite utilities:

Nload

Nload is a commandline tool that allows users to monitor the incoming and outgoing traffic separately. It also draws out a graph to indicate the same, the scale of which can be adjusted. Easy and simple to use, and does not support many options.

So if you just need to take a quick look at the total bandwidth usage without details of individual processes, then nload will be handy.

$ nload

nethogs

Nethogs is a small 'net top' tool that shows the bandwidth used by individual processes and sorts the list putting the most intensive processes on top. In the event of a sudden bandwidth spike, quickly open nethogs and find the process responsible. Nethogs reports the PID, user and the path of the program.

sudo nethogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment