To monitor network load in a console-based environment in Debian or Ubuntu, you can use the bmon
command.
bmon
is a network bandwidth monitor that displays network interface statistics in a text-based interface. It allows you to monitor the current bandwidth usage, as well as historical data, in real-time.
To install bmon
on Debian or Ubuntu, you can use the apt-get
command:
sudo apt-get update sudo apt-get install bmon
Once bmon
is installed, you can use the bmon
command to display network interface statistics in a console-based interface:
bmon
This will display a list of available network interfaces and their current bandwidth usage. You can use the up
and down
arrow keys to select an interface and the space
key to toggle between different display modes.
To customize the bmon
display, you can use the -p
option followed by a comma-separated list of plugins to specify the display mode:
bmon -p rate,packets
This will display the current rate and packet count for the selected interface.
To output bmon
data to a file, you can use the -o
option followed by the output file name:
bmon -o output.txt
This will write bmon
data to the output.txt
file.
Keep in mind that these are just a few examples of how to use bmon
to monitor network load in a console-based environment in Debian or Ubuntu. You can customize the options and display modes to meet the specific requirements of your system. You should also regularly review and optimize the network load to ensure that it is running efficiently.