bmon is a command-line utility in Linux that is used to monitor and display network bandwidth usage on a system. bmon provides a real-time view of the network traffic on the system, including the input and output data rates for each network interface.
If you encounter the below error while running the bmon command:
bmon: command not found
To use bmon, you will need to have the bmon utility installed on your Linux system. You can install bmon using the package manager for your specific distribution of Linux. For example, on an Ubuntu system, you can use the apt command to install bmon:
$ sudo apt install bmon
Once bmon is installed, you can start the utility by running the bmon command. bmon will start in interactive mode, displaying a real-time view of the network traffic on the system. To display a real-time view of the network traffic on the system, you can use the following command:
This command will start bmon in interactive mode, displaying a real-time view of the network traffic on the system. For more information on using bmon, you can consult the bmon documentation or use the bmon –help command to view a list of available options and usage examples.
bmon Command Examples
1. Display the list of all the interfaces:
# bmon -a
2. Display data transfer rates in bits per second:
# bmon -b
3. Set policy to define which network interface(s) is/are displayed:
# bmon -p interface_1,interface_2,interface_3
4. Set interval (in seconds) in which rate per counter is calculated:
# bmon -R 2.0