linux shell获取网口收发流量

先上指令: 获取接收数据总字节数: ifconfig eth0 | grep 'byte' | sed 's/^.*RX[[:space:]]bytes://' | sed 's/[[:space:]].*$//' 获取发送数据总字节数: ifconfig eth0 | grep 'byte' | sed 's/^.*TX[[:space:]]bytes://' | sed 's/[[:space
相关文章
相关标签/搜索