#!bin/bash
#功能:使用死循环,实时显示网卡eth0发送的数据包流量
#作者:liusingbon
while :
do
clear
echo "本地网卡eth0的数据流量信息如下:"
ifconfig eth0 | grep "RX pack" | awk '{print $5}'
ifconfig eth0 | grep "TX pack" | awk '{print $5}'
sleep 1
done
#!bin/bash
#功能:使用死循环,实时显示网卡eth0发送的数据包流量
#作者:liusingbon
while :
do
clear
echo "本地网卡eth0的数据流量信息如下:"
ifconfig eth0 | grep "RX pack" | awk '{print $5}'
ifconfig eth0 | grep "TX pack" | awk '{print $5}'
sleep 1
done
转载于:https://www.cnblogs.com/liusingbon/p/11032624.html