Skip to content

Commit

Permalink
ping: Update the man page
Browse files Browse the repository at this point in the history
  • Loading branch information
marprok authored and ADKaster committed May 9, 2024
1 parent eecede2 commit 9bcb0fe
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Base/usr/share/man/man8/ping.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ ping - send ICMP ECHO_REQUEST packets to network hosts
## Synopsis

```sh
$ ping [--count count] [-i interval] [--size size] [--quiet] <host>
$ ping [--count count] [-i interval] [-W interval] [--size size] [--quiet] [-t ttl] [--adaptive] [--flood] <host>
```

## 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

Expand Down

0 comments on commit 9bcb0fe

Please sign in to comment.