ping

ping - send ICMP ECHO_REQUEST to network hosts.


1 - Ping localhost

ping 127.0.0.1
ping localhost
ping 0

2 - Increase ping time interval to 5 seconds

ping -i 5 127.0.0.1

3 - Decrease ping time interval to 0.3 seconds

ping -i 0.3 127.0.0.1

4 - Send 5 ping packets then stop

ping -c 5 127.0.0.1

5 - Flood network address (root only )

ping -f 127.0.0.1

6 - Audible ping

ping -a 127.0.0.1

7 - Quiet mode. Display only summary statistics.

ping -q 127.0.0.1

8 - Change packet size. Ping with a packet of 1000 bytes

ping -s 1000 127.0.0.1

9 - Ping for 10 seconds then stop

ping -w 10 127.0.0.1

10 - Specify path for ping to send the packet

ping hop1 hop2 .. hopN destination

11 - Print the route of a packet to destination

ping -R google.com