The ping command stands for (Packet INternet Groper). It checks the connectivity between two nodes that is whether a server is reachable or not.
ping command keep executing and sends the packet until you interrupt.
To stop from execution press ctrl + c.
ping using DNS
ping using IP address
You can use IP address also with ping command.
ping to limit the packets
To limit the ping packet without using ctrl + c use option c followed by the number of packet to be send.
Look at the above snapshot, packets are limited to 5 without pressing keys.