OS Manuals

/usr/local/bin/ping

IP Configuration Utilities

From iputils 20250605-r9 (os), captured 2026-11-05 by running ping --help (exit 2). permalink

/usr/local/bin/ping: invalid option -- '-'

Usage
  ping [options] <destination>

Options:
  <destination>      DNS name or IP address
  -3                 RTT precision (do not round up the result time)
  -a                 use audible ping
  -A                 use adaptive ping
  -B                 sticky source address
  -c <count>         stop after <count> replies
  -C                 call connect() syscall on socket creation
  -D                 print timestamps
  -d                 use SO_DEBUG socket option
  -e <identifier>    define identifier for ping session, default is random for
                     SOCK_RAW and kernel defined for SOCK_DGRAM
                     Imply using SOCK_RAW (for IPv4 only for identifier 0)
  -f                 flood ping
  -h                 print help and exit
  -H                 force reverse DNS name resolution (useful for numeric
                     destinations or for -f), override -n
  -I <interface>     either interface name or address
  -i <interval>      seconds between sending each packet
  -L                 suppress loopback of multicast packets
  -l <preload>       send <preload> number of packages while waiting replies
  -m <mark>          tag the packets going out
  -M <pmtud opt>     define path MTU discovery, can be one of <do|dont|want|probe>
  -n                 no reverse DNS name resolution, override -H
  -O                 report outstanding replies
  -p <pattern>       contents of padding byte
  -q                 quiet output
  -Q <tclass>        use quality of service <tclass> bits
  -s <size>          use <size> as number of data bytes to be sent
  -S <size>          use <size> as SO_SNDBUF socket option value
  -t <ttl>           define time to live
  -U                 print user-to-user latency
  -v                 verbose output
  -V                 print version and exit
  -w <deadline>      reply wait <deadline> in seconds
  -W <timeout>       time to wait for response

IPv4 options:
  -4                 use IPv4
  -b                 allow pinging broadcast
  -R                 record route
  -T <timestamp>     define timestamp, can be one of <tsonly|tsandaddr|tsprespec>

IPv6 options:
  -6                 use IPv6
  -F <flowlabel>     define flow label, default is random
  -N <nodeinfo opt>  use IPv6 node info query, try <help> as argument

For more details see ping(8).
Options (38)
OptionDescriptionSource
-3RTT precision (do not round up the result time)help
-ause audible pinghelp
-Ause adaptive pinghelp
-Bsticky source addresshelp
-c countstop after <count> replieshelp
-Ccall connect() syscall on socket creationhelp
-Dprint timestampshelp
-duse SO_DEBUG socket optionhelp
-e identifierdefine identifier for ping session, default is random for SOCK_RAW and kernel defined for SOCK_DGRAM Imply using SOCK_RAW (for IPv4 only for identifier 0)help
-fflood pinghelp
-hprint help and exithelp
-Hforce reverse DNS name resolution (useful for numeric destinations or for -f), override -nhelp
-I interfaceeither interface name or addresshelp
-i intervalseconds between sending each packethelp
-Lsuppress loopback of multicast packetshelp
-l preloadsend <preload> number of packages while waiting replieshelp
-m marktag the packets going outhelp
-M pmtuddefine path MTU discovery, can be one of <do|dont|want|probe>help
-nno reverse DNS name resolution, override -Hhelp
-Oreport outstanding replieshelp
-p patterncontents of padding bytehelp
-qquiet outputhelp
-Q tclassuse quality of service <tclass> bitshelp
-s sizeuse <size> as number of data bytes to be senthelp
-S sizeuse <size> as SO_SNDBUF socket option valuehelp
-t ttldefine time to livehelp
-Uprint user-to-user latencyhelp
-vverbose outputhelp
-Vprint version and exithelp
-w deadlinereply wait <deadline> in secondshelp
-W timeouttime to wait for responsehelp
-4use IPv4help
-ballow pinging broadcasthelp
-Rrecord routehelp
-T timestampdefine timestamp, can be one of <tsonly|tsandaddr|tsprespec>help
-6use IPv6help
-F flowlabeldefine flow label, default is randomhelp
-N nodeinfouse IPv6 node info query, try <help> as argumenthelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.