#!/bin/bash
while :
do
echo '本地网卡 eth0流量信息如下:'
ifconfig eth0 |grep "RX pack" | awk 'BEGIN{OFS=""};{print $6,$7}'
ifconfig eth0 |grep "TX pack" | awk 'BEGIN{OFS=""};{print $6,$7}'
sleep 5
clear
done
#!/bin/bash
while :
do
echo '本地网卡 eth0流量信息如下:'
ifconfig eth0 |grep "RX pack" | awk 'BEGIN{OFS=""};{print $6,$7}'
ifconfig eth0 |grep "TX pack" | awk 'BEGIN{OFS=""};{print $6,$7}'
sleep 5
clear
done