ping , ping6
Basic Usage
Common Options and Usage
ping <hostname_or_ip>ping google.comPING google.com (142.250.74.14) 56(84) bytes of data. 64 bytes from lga34s10-in-f14.1e100.net (142.250.74.14): icmp_seq=1 ttl=117 time=12.8 ms 64 bytes from lga34s10-in-f14.1e100.net (142.250.74.14): icmp_seq=2 ttl=117 time=12.5 ms
ping -c <count> <hostname_or_ip>ping -c 5 google.comPING google.com (142.250.74.14) 56(84) bytes of data. 64 bytes from lga34s10-in-f14.1e100.net (142.250.74.14): icmp_seq=1 ttl=117 time=12.8 ms 64 bytes from lga34s10-in-f14.1e100.net (142.250.74.14): icmp_seq=2 ttl=117 time=12.5 ms 64 bytes from lga34s10-in-f14.1e100.net (142.250.74.14): icmp_seq=3 ttl=117 time=12.7 ms 64 bytes from lga34s10-in-f14.1e100.net (142.250.74.14): icmp_seq=4 ttl=117 time=12.6 ms 64 bytes from lga34s10-in-f14.1e100.net (142.250.74.14): icmp_seq=5 ttl=117 time=12.5 ms --- google.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4004ms rtt min/avg/max/mdev = 12.514/12.621/12.730/0.085 ms
ping -s <size> <hostname_or_ip>ping -s 100 google.com
ping -W <timeout> <hostname_or_ip>ping -W 2 google.com
ping -I <interface> <hostname_or_ip>ping -I eth0 google.com
Output Interpretation
Example Scenarios
Conclusion
Last updated