Name
ping [options
] host
— iputils
Synopsis
/bin
stdin stdout - file -- opt --help --version
The ping
command tells you if a remote host is reachable. It sends small packets (ICMP packets to be precise) to a remote host and waits for responses.
$ ping google.com PING google.com (216.239.37.100) from 192.168.0.10 : 56(84) bytes of data. 64 bytes from www.google.com (216.239.37.100): icmp_seq=0 ttl=49 time=32.390 msec 64 bytes from www.google.com (216.239.37.100): icmp_seq=1 ttl=49 time=24.208 msec ^C --- google.com ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/mdev = 24.208/28.299/32.390/4.091 ms
Useful options | |
| Ping at most |
| Wait |
| Print IP addresses in the output, rather than hostnames. |
Get Linux Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.