2013年9月4日

实时查看linux网卡流量 的base脚本

摘要: #!/bin/bash while [ "1" ] do eth=$1 RXpre=$(cat /proc/net/dev | grep $eth | tr : " " | awk '{print $2}') TXpre=$(cat /proc/net/dev | grep $eth | tr : " " | awk '{print $10}') sleep 1 RXnext=$(cat /proc/net/dev | grep $eth | tr : " " | awk ' 阅读全文

posted @ 2013-09-04 17:16 阿杜0409 阅读(310) 评论(0) 推荐(0) 编辑

导航