Skip to main content
copyedit (edit summary bust have at least 10 characters)
Link

Why ping command hasis there output of ping after breaking it has been terminated?

Became Hot Network Question
Source Link
Amir reza Riahi
  • 893
  • 1
  • 11
  • 21

Why ping command has output after breaking it?

When a process breaks, as I know no output will be return anymore. But always after breaking ping command we have the statistics of the execution, and as I know it's part of the output.

amirreza@time:~$ ping 4.2.2.4 PING 4.2.2.4 (4.2.2.4) 56(84) bytes of data. 64 bytes from 4.2.2.4: icmp_seq=1 ttl=51 time=95.8 ms 64 bytes from 4.2.2.4: icmp_seq=2 ttl=51 time=92.3 ms ^C --- 4.2.2.4 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 92.321/94.052/95.783/1.731 ms amirreza@time:~$ 

How does it work?