From 9bcb0feb4dc8775e615a6fb87499f37a39062190 Mon Sep 17 00:00:00 2001 From: Marios Prokopakis Date: Sat, 6 Apr 2024 21:54:07 +0300 Subject: [PATCH] ping: Update the man page --- Base/usr/share/man/man8/ping.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Base/usr/share/man/man8/ping.md b/Base/usr/share/man/man8/ping.md index cb62a4d198..34ee268708 100644 --- a/Base/usr/share/man/man8/ping.md +++ b/Base/usr/share/man/man8/ping.md @@ -5,15 +5,21 @@ ping - send ICMP ECHO_REQUEST packets to network hosts ## Synopsis ```sh -$ ping [--count count] [-i interval] [--size size] [--quiet] +$ ping [--count count] [-i interval] [-W interval] [--size size] [--quiet] [-t ttl] [--adaptive] [--flood] ``` ## Options +* `--help`: Display help message and exit. +* `--version`: Print version. * `-c count`, `--count count`: Stop after sending specified number of ECHO_REQUEST packets. -* `-i interval`: Wait `interval` seconds between sending each packet. Fractional seconds are allowed. +* `-i interval`: Wait `interval` seconds between sending each ECHO_REQUEST packet. Fractional seconds are allowed. Only super-user can set the interval value less than 0.2 seconds. +* `-W interval`: Time in seconds to wait for a reply for each packet sent. Fractional seconds are allowed. 0 means infinite timeout. * `-s size`, `--size size`: Amount of bytes to send as payload in the ECHO_REQUEST packets. -* `-q`, `--quiet`: Quiet mode. Only display summary when finished. +* `-q`, `--quiet`: Quiet mode. Only display the summary when finished. +* `-t`, `--ttl`: Set the TTL(time-to-live) value of the ICMP packets. +* `-A`, `--adaptive`: Adaptive ping. The interval between each ECHO_REQUEST adapts to the RTT(round-trip-time). +* `-f`, `--flood`: Flood ping. For every ECHO_REQUEST sent a period '.' is printed, while for every ECHO_REPLY received a backspace is printed. This provides a rapid display of how many packets are being dropped. If interval is not given, it sets interval to 0 and outputs packets as fast as they come back. Only super-user may use this option with 0 interval. ## Arguments