normally, ctrl+c terminates the process on the terminal. Now there is a strange problem.
you can cancel ping, but tail can"t. Ask God for help!
[root@LAMP ~]-sharp ping www.baidu.com
PING www.a.shifen.com (61.135.169.121) 56(84) bytes of data.
64 bytes from 61.135.169.121 (61.135.169.121): icmp_seq=1 ttl=57 time=6.40 ms
64 bytes from 61.135.169.121 (61.135.169.121): icmp_seq=2 ttl=57 time=4.61 ms
^C
--- www.a.shifen.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 4.613/5.508/6.403/0.895 ms
[root@LAMP ~]-sharp tail -f /data/logs/blog_access.log
^C^C^C^C^C