Is there a way to tell ping
to show its usual termination statistics without stopping the execution?
For instance, I'd like to quickly view:
--- 8.8.8.8 ping statistics ---
2410 packets transmitted, 2274 received, +27 errors, 5% packet loss, time 2412839ms
rtt min/avg/max/mdev = 26.103/48.917/639.493/52.093 ms, pipe 3
without having to stop the program, thus losing the accumulated data.
Best Answer
From the
ping
manpage (emphasis mine):So this will work if you're fine with your stats being slightly less verbose:
Short statistics look like this: