Nload: Monitor Linux Network Traffic and Bandwidth Usage

Linux TLDR
Last Updated:
Reading time: 2 minutes

Nload is a simple networking tool that monitors your network traffic and bandwidth usage in real-time, visualizing the incoming and outgoing data results in two separate ASCII graphs.

In addition to the graph, it also provides additional information, such as the total amount of transferred data and the minimum/maximum network usage for your investigation.

If there is a sudden spike in network bandwidth, then you can use a tool like NetHogs to identify the process or application responsible for it and take appropriate action afterwards.

In this article, we solely focus on the installation of Nload on the most popular Linux distribution and command-line usage with practical examples.

Tutorial Details

DescriptionNload: Monitor Network Traffic and Bandwidth Usage in Graph
Difficulty LevelLow
Root or Sudo PrivilegesNo
OS CompatibilityUbuntu, Manjaro, Fedora, etc.
Prerequisites–
Internet RequiredYes (for installation)

How to Install Nload on Linux

Nload can easily be installed on any Linux distribution using its default package package by running one of the appropriate commands.

#On Debian and Ubuntu
$ sudo apt install nload

#On RedHat and CentOS
$ sudo yum install epel-release
$ sudo yum install nload

#On Fedora
$ sudo dnf install nload

#On Arch and Manjaro
$ sudo pacman -S nload

#On OpenSUSE
$ sudo zypper i nload

#On Alpine Linux
$ sudo apk add nload

#On OpenBSD System
$ sudo pkg_add -i nload

#On macOS
$ brew install nload

Usage of Nload

Once the installation is complete, you can access the β€œnload” command with or without specifying the interface (it will detect all interfaces if none are specified).

$ nload

#OR

$ nload [interface]

Output:

nload output

In the above picture, you can see that three interfaces have been detected (because none are specified), which you can switch between by pressing the left and right arrow keys.

The incoming and outgoing data are also beautifully shown in two distinct graphs, with additional information next to each graph that you can use to monitor your network activity usage.

To monitor all the network interfaces at once, you can use the β€œ-m” option with the β€œnload” command.

$ nload -m

Output:

listing all interface at once in nload

The following are a few keyboard shortcuts that you can use in Nload.

KeyUsage
left and right arrow keyCycle through each auto-detected network device.
F2Show the option window.
F5Save current settings to the user’s config file.
F6Reload settings from the config files.
q or Ctrl+cQuit and return to the shell prompt.

The following are options that you can use with NetHogs:

OptionDescription
-aSets the length in seconds of the time window for average calculation (default is β€œ300β€œ).
-tSets the refresh interval of the display in milliseconds (default value is β€œ500β€œ).
-u h|b|k|m|g|H|B|K|M|GSets the type of unit used for the display of traffic numbers (default is β€œhβ€œ).
h: auto, b: Bit/s, k: kBit/s, m: MBit/s etc.
H: auto, B: Byte/s, K: kByte/s, M: MByte/s etc.
-U h|b|k|m|g|H|B|K|M|GSame as -u, but for a total amount of data (without β€œ/s”) and by default it uses β€œHβ€œ.

That’s it for today’s article. If you have any questions or queries related to the topic, then do let me know in the comment section.

Till then, peace!

Join The Conversation

Users are always welcome to leave comments about the articles, whether they are questions, comments, constructive criticism, old information, or notices of typos. Please keep in mind that all comments are moderated according to our comment policy.