阅 读 文 章

请问命令行下怎么看即时网速啊?

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(cram) | 时间:2007-05-26 | 浏览:人次 ]


请问命令行下怎么看即时网速啊, 
服务器使用的是命令行,不想进X看(太耗资源了),在命令行下能看某网卡进和出的网速吗?



 cram 回复于:2004-07-26 23:45:08

up


 bjgirl 回复于:2004-07-27 00:48:14

use "ifconfig" Analyse the flow of the network
if you use adsl,use "adsl-status"


 cram 回复于:2004-07-27 16:34:40

ifconfig好象只能看到每个网卡总的流量,要看即时的速度还很麻烦啊,因为要确定两次执行ifconfig的间隔,有没有其他办法啊,是不是要借助于其他软件啊?


 zhaoshan 回复于:2004-07-27 16:43:03

iftop


 cram 回复于:2004-07-27 16:48:54

我的系统里没有iftop,是要另外装吗?


 zhaoshan 回复于:2004-07-27 17:03:16

是的 装一下吧。


 cram 回复于:2004-07-27 17:08:40

搞定了,装的是0.9版的,效果不错,谢谢大家,分享:
下载:
http://www.ex-parrot.com/~pdw/index.html
DESCRIPTION

iftop listens to network traffic on a named interface, or on the first interface it can find which looks like an external interface if none is specified, and displays a table of current bandwidth usage by pairs of hosts. iftop must be run with sufficient permissions to monitor all network traffic on the interface; see pcap(3) for more information, but on most systems this means that it must be run as root. 

By default, iftop will look up the hostnames associated with addresses it finds in packets. This can cause substantial traffic of itself, and may result in a confusing display. You may wish to suppress display of DNS traffic by using filter code such as not port domain, or switch it off entirely, by using the -d option or by pressing R when the program is running. 


By default, iftop counts all IP packets that pass through the filter, and the direction of the packet is determined according to the direction the packet is moving across the interface. Using the -n option it is possible to get iftop to show packets entering and leaving a given network. For example, iftop -n 10.0.0.0/255.0.0.0 will analyse packets flowing in and out of the 10.* network.
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 即时 怎么 命令 请问 回复 gcc-DHAVE_CONFIG_H-I.-I.-I.-g-O2-c

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.