BMON is a lightweight and powerful network monitoring tool that provides real-time network usage information. It is designed for Linux and Unix systems and is available in the default repositories of many Linux distributions. BMON has several features that make it an excellent choice for monitoring network traffic, including:
- Lightweight: BMON is designed to be lightweight and consumes very few system resources, making it an excellent choice for monitoring network traffic on low-end systems.
- Real-time monitoring: BMON provides real-time monitoring of network traffic, allowing you to keep track of network usage in real time.
- Easy-to-use: BMON is easy-to-use, even for those unfamiliar with the command line interface.
- Customizable output: BMON allows you to customize the output format using a format string, making getting the information you need easy.
- Support for multiple interfaces: BMON can monitor multiple network interfaces simultaneously, allowing you to keep track of network traffic on multiple interfaces.
- Open source: BMON is free and open-source software licensed under the GPL.
If you want to monitor network traffic on your Ubuntu 22.04 Jammy Jellyfish or Ubuntu 20.04 Focal Fossa system, BMON is an excellent choice. This guide will demonstrate how to install BMON on Ubuntu 22.04 Jammy Jellyfish or Ubuntu 20.04 Focal Fossa using the command line terminal, along with demonstrating some of its basic commands.
Table of Contents
Step 1: Update Ubuntu
Before installing BMON, it is recommended to update your system to ensure that all packages are up to date. You can update your system using the following command:
sudo apt update && sudo apt upgrade
Step 2: Install BMON
BMON is available in the Ubuntu default repositories. You can install it using the following command:
sudo apt install bmon
Step 3: BMON Commands
Using BMON commands is an easy and efficient way to monitor network traffic on your Ubuntu system. This section will discuss some basic commands you can use with BMON.
To start monitoring network traffic with BMON, you can run the following command in the terminal:
This will start BMON in real-time and display network usage information for all interfaces.
If you want to monitor a specific interface, use the “-i” option followed by the interface’s name. For example:
bmon -i eth0
This will display network usage information for the eth0 interface only.
You can save the network usage information to a file for future analysis. To save the output to a file, use the “-o” option followed by the file’s name. For example:
bmon -o output.txt
This will save the output to a file named “output.txt” in the current directory.
BMON allows you to customize the output format using a format string. The format string consists of placeholders that are replaced with values at runtime. For example, the following command will display network usage information for the eth0 interface in a custom format:
bmon -i eth0 -f '%name:%inbytes:%outbytes\n'
This will display the interface’s name, followed by the number of incoming and outgoing bytes, separated by colons and displayed on separate lines.
To exit BMON, press “q” or “Ctrl+C” in the terminal.
How to Remove BMON
If you no longer need BMON, you can uninstall it using the following command:
sudo apt remove bmon
BMON is a powerful network monitoring tool that provides real-time network usage information. This article has shown you how to install BMON on Ubuntu 22.04 Jammy Jellyfish or Ubuntu 20.04 Focal Fossa. We have also covered how to use BMON to monitor network usage and how to uninstall it if you no longer need it.
If you’re interested in learning more about BMON and Ubuntu, there are several official links and community forums you can visit:
- BMON Official Website: https://github.com/tgraf/bmon
- Ubuntu Wiki: https://wiki.ubuntu.com/
- Ubuntu Community Forum: https://discourse.ubuntu.com/
- Ubuntu Community Help Wiki: https://help.ubuntu.com/community/