简单的问题,你如何使用终端,例如谷歌,并获得它的统计数字?我的意思是传输数据包丢失的ttl等,因为我尝试了不同的选项使用ping --帮助,但键入ping www.google.com,终端中的列表只会继续滚动icmp_req=1 icmp_req=2 icmp_req=3和4,5,6,7等等.看上去永不停息。
发布于 2014-01-28 21:43:21
您还可以告诉ping要发送的pings数量,或“count.‘”。
ping -c3 www.google.comPING www.google.com (74.125.228.49) 56(84)字节的数据。来自iad23s06-in-f17.1e100.net (74.125.228.49)的64字节:来自iad23s06-in-f17.1e100.net (74.125.228.49)的icmp_seq=1 ttl=50 time=34.0 ms 64字节(74.125.228.49):来自iad23s06-in-f17.1e100.net (74.125.228.49)的icmp_seq=2 ttl=50 time=38.8 ms 64字节: icmp_seq=3 ttl=50 time=38.8 ms - www.google.com ping统计-3个传输数据包,3个接收包,0%的数据包丢失,时间2000 ms rtt min/avg/max/mdev = 34.053/37.272/38.897/2.287 ms
发布于 2014-01-28 21:37:25
你所要做的就是在终端机上点击Ctrl,它就会停止。然后,它将显示您正在寻找的结果。
PING google.com (74.125.228.72) 56(84) bytes of data.
64 bytes from iad23s07-in-f8.1e100.net (74.125.228.72): icmp_seq=1 ttl=57 time=40.2 ms
64 bytes from iad23s07-in-f8.1e100.net (74.125.228.72): icmp_seq=2 ttl=57 time=42.7 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 40.247/41.505/42.764/1.274 mshttps://askubuntu.com/questions/412290
复制相似问题