Name
ping
Synopsis
ping [options]host
Confirms
that a remote host is online and responding. ping
is intended for use in network testing, measurement, and management.
Because of the load it can impose on the network, it is unwise to use
ping during normal operations or from automated
scripts.
Options
-
-ccount Stop after sending (and receiving)
countECHO_RESPONSEpackets.-
-d Set the
SO_DEBUGoption on the socket being used.-
-f Flood
ping-output packets as fast as they come back or 100 times per second, whichever is more. This can be very hard on a network and should be used with caution; only a privileged user may use this option.-
-iwait Send a packet every
waitseconds. Default is to wait 1 second between each packet.waitmust be a positive integer value. This option is incompatible with the-foption.-
-lpreload Send
preloadnumber of packets as fast as possible before changing to default packet dispatch frequency. High packet losses are to be expected during preload delivery.-
-n Numeric output only. No attempt is made to look up symbolic names for host addresses.
-
-pdigits Specify up to 16-pad bytes to fill out packet sent. This is useful for diagnosing data-dependent problems in a network. The 32 most significant hexidecimal
digitsare used for the pattern. For example,-pffcauses the sent packet to be filled with all 1s, as does:-p ffffffffffffffffffffffffffffffff0001
-
-q Quiet output; nothing is displayed except the summary lines at startup time and when finished.
-
-r
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access