仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1113|回复: 9
打印 上一主题 下一主题

[shell编程] 来一发shell检察网卡的及时流量剧本

[复制链接]
莫相离 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-14 20:14:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
欢迎大家来到仓酷云论坛!<divstyle="padding-bottom:0px;text-transform:none;background-color:rgb(255,255,255);text-indent:0px;margin:0px;padding-left:0px;padding-right:0px;font:14px/28px宋体,ArialNarrow,arial,serif;white-space:normal;letter-spacing:normal;color:rgb(80,80,80);word-spacing:0px;padding-top:0px;-webkit-text-stroke-width:0px"><divclass="syntaxhighlighterbash"id="highlighter_22088"style="box-sizing:content-box!important;border-bottom:0px;position:relative!important;text-align:left!important;border-left:0px;padding-bottom:0px!important;line-height:1.1em!important;overflow-x:auto!important;overflow-y:visible!important;font-style:normal!important;margin:0.3em0px;outline-style:none!important;outline-color:invert!important;min-height:inherit!important;padding-left:0px!important;outline-width:0px!important;width:720px;bottom:auto!important;padding-right:0px!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;background:white;float:none!important;font-size:1em!important;vertical-align:baseline!important;border-top:0px;top:auto!important;right:auto!important;font-weight:normal!important;border-right:0px;padding-top:0px!important;left:auto!important;border-top-left-radius:0px;border-bottom-left-radius:0px;border-bottom-right-radius:0px;border-top-right-radius:0px"><divclass="container"style="box-sizing:content-box!important;border-bottom:0px;position:relative!important;text-align:left!important;border-left:0px;padding-bottom:0px!important;line-height:1.1em!important;font-style:normal!important;margin:0px;outline-style:none!important;outline-color:invert!important;min-height:inherit!important;padding-left:0px!important;outline-width:0px!important;width:auto!important;bottom:auto!important;padding-right:0px!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;background:nonetransparentscrollrepeat0%0%;float:none!important;font-size:1em!important;vertical-align:baseline!important;overflow:visible!important;border-top:0px;top:auto!important;right:auto!important;font-weight:normal!important;border-right:0px;padding-top:0px!important;left:auto!important;border-top-left-radius:0px;border-bottom-left-radius:0px;border-bottom-right-radius:0px;border-top-right-radius:0px">
#!/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})

sleep1

<divclass="linenumber8index7alt1"style="box-sizing:content-box!important;border-bottom:0px;position:static!important;text-align:left!important;border-left:0px;padding-bottom:0px!important;line-height:1.1em!important;font-style:normal!important;margin:0px;outline-style:none!important;outline-color:invert!important;min-height:inherit!important;padding-left:1em!important;outline-width:0px!important;width:auto!important;bottom:auto!important;padding-right:1em!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;white-space:nowrap;background:white;float:none!important;font-size:1em!important;vertical-align:baseline!important;overflow:visible!important;border-top:0px;top:auto!important;right:auto!important;font-weight:normal!important;border-right:0px;padding-top:0px!important;left:auto!important;border-top-left-radius:0px;border-bottom-left-radius:0px;border-bottom-right-radius:0px;border-top-right-radius:0px">RXnext=$(cat/proc/net/dev|grep$eth|tr:""|awk{print$2}
活着的死人 该用户已被删除
沙发
发表于 2015-1-15 07:45:41 | 只看该作者

来一发shell检察网卡的及时流量剧本

前排,哇咔咔
爱飞 该用户已被删除
板凳
发表于 2015-1-18 08:47:39 | 只看该作者
学习Linux,应该怎样学,主要学些什么,一位Linux热心学习者,一段学习Linux的风云经验,历时十二个小时的思考总结,近十位网络Linux学习者权威肯定,为您学习Linux指明方向。
地板
发表于 2015-1-27 07:22:03 | 只看该作者
让我树立了很大的信心学好这门课程,也学到了不少专业知识和技能。?
灵魂腐蚀 该用户已被删除
5#
发表于 2015-2-5 11:45:47 | 只看该作者
对于英语不是很好的读者红旗 Linux、中标Linux这些中文版本比较适合。现在一些Linux网站有一些Linux版本的免费下载,这里要说的是并不适合Linux初学者。
莫相离 该用户已被删除
6#
 楼主| 发表于 2015-2-11 20:34:50 | 只看该作者
眼看这个学期的Linux课程已经告一段落了,我觉得有必要写一遍心得体会来总结一下这学期对着门课程的学习。
柔情似水 该用户已被删除
7#
发表于 2015-3-2 20:23:29 | 只看该作者
另外Linux上也有很多的应用软件,安装运行了这些软件后,你就可以在Linux上编辑文档、图?片,玩游戏、上网、播放多媒体文件等。
变相怪杰 该用户已被删除
8#
发表于 2015-3-11 08:21:36 | 只看该作者
最好先搜寻一下论坛是否有您需要的文章。这样可以获得事半功倍的效果。
谁可相欹 该用户已被删除
9#
发表于 2015-3-18 07:58:51 | 只看该作者
我学习Linux的心得体会 ,希望对大家的学习有所帮助,由于水平有限,本文难免有所欠缺,望请指正。
蒙在股里 该用户已被删除
10#
发表于 2015-3-25 21:52:15 | 只看该作者
如果你有庞大而复杂的测试条件,尽量把它剪裁得越小越好。可能你会遇到这种情况,对于一个问题会出现不同内容回答,这时你需要通过实践来验证。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-4-28 09:26

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表