ping
ICMP ECHO_REQUEST パケットをネットワーク上のホストに送る $ ping google.com
code:memo
$ ping google.com
PING google.com (142.250.199.110): 56 data bytes
64 bytes from 142.250.199.110: icmp_seq=0 ttl=118 time=7.059 ms
64 bytes from 142.250.199.110: icmp_seq=1 ttl=118 time=6.140 ms
64 bytes from 142.250.199.110: icmp_seq=2 ttl=118 time=5.810 ms
64 bytes from 142.250.199.110: icmp_seq=3 ttl=118 time=7.151 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 5.810/6.540/7.151/0.578 ms
指定回数だけpingを飛ばす
$ ping -c 3 google.com
確認用
Q. ping
参考
関連