nload is a lightweight traffic statistics tool. It can only count the total inbound and outbound traffic of the overall bandwidth, but it is indeed simple and practical.
Installation method
centos
yum install nload -y
ubuntu &debian
apt-get install nload -y
Compile and install
wget http://www.roland-riegel.de/nload/nload-0.7.2.tar.gz
tar zxvf nload-0.7.2.tar.gz
cd nload-0.7.2
./configure;make;make install
Usage
nload
-a: This seems to be the refresh interval for all data, in seconds; the default is 300.
-i: Sets the maximum display scale value for the incoming network interface traffic graph; default is 10240 kBit/s.
-m: Does not display the traffic graph, only the statistics.
-o: Sets the maximum display scale value for the outgoing network interface traffic graph; default is 10240 kBit/s.
-t: Refresh interval for displayed data, in milliseconds; default is 500.
-u: Sets the data unit for Curr, Avg, Min, Max on the right; by default it changes automatically. Note that uppercase and lowercase units are different!
h|b|k|m|g h: auto, b: Bit/s, k: kBit/s, m: MBit/s etc.
H|B|K|M|G H: auto, B: Byte/s, K: kByte/s, M: MByte/s etc.
-U: Sets the data unit for Ttl on the right; by default it changes automatically. Note that uppercase and lowercase units are different (same as -u)!
Devices: Custom network interfaces to monitor; by default all are monitored, and you can switch with the left and right arrow keys.
