免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1090 | 回复: 0
打印 上一主题 下一主题

快捷命令 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-24 16:32 |只看该作者 |倒序浏览
1、^替换命令
[root@ser ~]# ping
www.sina.com.cn
ping: unknown host
www.sina.com.cn
[root@ser ~]# ^sina^baidu
ping
www.baidu.com.cn
[root@ser ~]# ping 192.168.1.163
PING 192.168.1.163 (192.168.1.163) 56(84) bytes of data.
64 bytes from 192.168.1.163: icmp_seq=0 ttl=128 time=0.541 ms
--- 192.168.1.163 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.541/0.541/0.541/0.000 ms, pipe 2
[root@ser ~]# ^3^8
ping 192.168.1.168
PING 192.168.1.168 (192.168.1.168) 56(84) bytes of data.
64 bytes from 192.168.1.168: icmp_seq=0 ttl=64 time=2.65 ms
64 bytes from 192.168.1.168: icmp_seq=1 ttl=64 time=0.004 ms
--- 192.168.1.168 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.004/1.330/2.656/1.326 ms, pipe 2
2、!历史命令
[root@ser ~]# ping 192.168.1.163
PING 192.168.1.163 (192.168.1.163) 56(84) bytes of data.
64 bytes from 192.168.1.163: icmp_seq=0 ttl=128 time=0.184 ms
--- 192.168.1.163 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.184/0.184/0.184/0.000 ms, pipe 2
[root@ser ~]# !p
ping 192.168.1.163
PING 192.168.1.163 (192.168.1.163) 56(84) bytes of data.
64 bytes from 192.168.1.163: icmp_seq=0 ttl=128 time=0.159 ms
64 bytes from 192.168.1.163: icmp_seq=1 ttl=128 time=0.135 ms
--- 192.168.1.163 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.135/0.147/0.159/0.012 ms, pipe 2
[root@ser ~]#

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/76526/showart_2059311.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP