if you want to monitor network throughput on the command line interface, use nload application. It is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in and outgoing traffic using two graphs and provides additional info like total amount of transferred data and min/max network usage.
First, turn on EPEL repo on a CentOS or RHEL based system. Type the following yum command to install nload:
yum -y install nload
Type the following apt-get command :
sudo apt-get install nload
To install the nload via port, type:
cd /usr/ports/net/nload/ && make install clean
Or add the package
pkg install net/nload
Type the following command:
sudo pkg_add -i nload
The basic syntax is:
nload nload device nload [options] device1 device2
Just type the following command:
nload
nload eth0
nload em0 em2
Once nload command executed, it begins to monitor the network devices. You can control nload with the following key shortcuts:
The default value of interval is 100 milliseconds to refresh interval of the display. In this example, change to 500 milliseconds:
nload -t {interval_number_in_millisec}
nload -t 500