When a Linux server suddenly becomes sluggish, the first instinct is usually to check the CPU or RAM usage. However, often the culprit is a network bottleneck—a massive file download, an aggressive web scraper hitting your Apache server, or an automated backup script consuming all available bandwidth. To instantly see exactly how much data is entering and leaving your machine in real-time, you need a visual tool. One of the best, most lightweight options is the nload command.
What is nload?
nload is a command-line application that monitors network traffic and bandwidth usage in real time. It splits your terminal screen into two distinct sections (Incoming and Outgoing) and draws a live ASCII graph showing the flow of data. It is incredibly intuitive; you do not need to parse complex numbers or calculate megabytes per second in your head—you just look at the graph.
How to Install nload
Unlike basic tools like grep or tar, nload is usually not installed on Linux distributions by default. You will need to install it from your package manager.
For Debian/Ubuntu-based systems (like Ubuntu Server or Linux Mint), open your terminal and type:
sudo apt update
sudo apt install nload
For RHEL/CentOS/Fedora systems, type:
sudo dnf install nload
How to Run and Read the Graphs
Once installed, simply type the command to launch the interface:
nload
Your terminal window will transform into a monitoring dashboard.
- The Top Half (Incoming): This shows the data downloading to your server (e.g., users uploading files to your web server, or your server downloading a software update).
- The Bottom Half (Outgoing): This shows the data uploading from your server (e.g., your server sending a web page to a visitor’s browser).
Each section displays a visual graph made of hash marks (#), along with precise statistics on the right side:
- Curr: The current bandwidth usage at this exact second.
- Avg: The average usage since you opened the program.
- Min / Max: The lowest and highest spikes recorded.
- Ttl: The total amount of data transferred (e.g., 5.2 GBytes).
Switching Between Network Interfaces
If your Linux machine has multiple network connections (for example, a wired Ethernet connection eth0 and a Wi-Fi connection wlan0, or a virtual Docker bridge), nload will only show one at a time. It usually defaults to the first active interface.
To switch the view to a different network interface, simply press the Left or Right Arrow keys on your keyboard while the program is running. The interface name (displayed at the very top of the screen) will change, allowing you to monitor each connection independently.
When you are finished monitoring, simply press q (for quit) or Ctrl + C to exit the application and return to your normal command prompt.