- 论坛徽章:
- 0
|
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 |
|