shell脚本_实时监控网卡流量 #!/bin/bash while : do clear echo "IO of eth0:" ifconfig eth0 |grep "RX packets"|tr -s " "|cut -d" " -f6 ifconfig eth0 |grep "TX packets"|tr -s " "|cut -d" " -f6 sleep 1 done