Linux Ping

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Linux ping

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


  1. ping <destination>  



Linux ping1

ping using IP address

You can use IP address also with ping command.


  1. ping  

Linux ping2

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.


  1. ping -c <number> <destination>


  1. ping -c 5  

Linux ping3

Look at the above snapshot, packets are limited to 5 without pressing keys.