# ping
This command is used to find if the end system is reachable from the current system or not. It sends ICMP ECHO_REQUEST packet to the specified system/server/gateway/network element to get the ECHO_RESPONSE packet.
Note: ping uses 28 byte of data for header information.
In Linux it usually send infinite number of packets unless you specify -c option. To quit ping command press ctrl+c key.
Basic syntax for ping command is:
ping <ipaddress/hostname>
for example ping google.com
ping 0/ping localhost/ping 127.0.0.1 – checks if the local interface is working
commonly used options for ping are
-i <n> wait n seconds between sending each packet.
ping -i 5 192.168.0.3 will send ping requests every 5 seconds
ping -i 0.1 192.168.0.3 will send 100 ms interval time.
Note: Only super user can send ping packets lesser than 200 ms
Read more: Varghees Samraj