Using the ping command in Linux

Ping can be used to test a connection from one server to another server.

How ping works

Ping (Packet Internet Groper), uses the ICMP (Internet Control Message Protocol) to send an echo request message. This elicits an ICMP echo response, and the time it takes to receive this response can be used to measure the strength of the connection.

Standard ping command in Linux

Ping limit

You can specify the number of pings you wish to send. By default, it runs until it is stopped with the ctrl+c command. 

ping google.com
ping 8.8.8.8
ping -c 3 google.com

Setting the ping Time to Live (TTL)

ping -t 50 google.com