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
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
OS X | brew install bmon |
Debian | apt-get install bmon |
Ubuntu | apt-get install bmon |
Alpine | apk add bmon |
Arch Linux | pacman -S bmon |
Kali Linux | apt-get install bmon |
Fedora | dnf install bmon |
Raspbian | apt-get 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:
# bmon
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