Useful commands

ping -c 1 -w 1 -q
-c <x>: Stop sending after <x> packets.
-w <x>: Time to wait for a response, in seconds.
-q: Display summary line.