ping command line tool and its examples

It is a networking utility which is used to test the reachability of a server over network. Command sends packets of data to a specific IP address and waits for their reply. The time taken for the reply is called the “round-trip time”.

  • About ping: To send ICMP ECHO_REQUEST to network hosts
  • Comes From: iputils-20071127
  • Configuration Files:
  • Path: /bin/ping


1. To send ICMP request to mentioned host

# ping

2. To have the audible ping

# ping -a

3. To ping for particular number of counts

# ping -c 10

4. For flood ping

# ping -f

5. To set the interval

# ping -i 10

6. To ping particular iterface

# ping -I eth0

7. To sent specified number of packets without waiting for reply

# ping -l 10

8. To get the numerical output only

# ping -n

9. To suppress the output

# ping -q

10. To record the route

# ping -R

11. To bypass the routing table

# ping -r

12. To specifies the number of data bytes to be sent

# ping -s 1024

13. To set the IP Time to Live

# ping -t 10

14. To Set special IP timestamp options

# ping -T

15. To Select Path MTU Discovery strategy

# ping -M hint

16. To Print full user-to-user latency

# ping -U

17. To to set to verbose mode

# ping -v

18. To show the version info

# ping -V

19. To set the timeout

# ping -w 10

20. To time to wait for a response

# ping -W 10

Related Commands: netstat, ifconfig

Leave a Reply

Your email address will not be published. Required fields are marked *