1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ping.md
witt a0e363e25f
ping: update page, add Chinese translation (#15510)
* ping: add chinese translation

* ping: fix link symbol

* ping: update prompt

* Update pages.zh/common/ping.md

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>

---------

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
2025-01-31 20:34:21 -08:00

32 lines
802 B
Markdown

# ping
> Send ICMP ECHO_REQUEST packets to network hosts.
> More information: <https://manned.org/ping>.
- Ping host:
`ping {{host}}`
- Ping a host only a specific number of times:
`ping -c {{count}} {{host}}`
- Ping host, specifying the interval in seconds between requests (default is 1 second):
`ping -i {{seconds}} {{host}}`
- Ping host without trying to lookup symbolic names for addresses:
`ping -n {{host}}`
- Ping host and ring the bell when a packet is received (if your terminal supports it):
`ping -a {{host}}`
- Also display a message if no response was received:
`ping -O {{host}}`
- Ping a host with specific number of pings, per-packet response timeout (`-W`), and total time limit (`-w`) of the entire ping run:
`ping -c {{count}} -W {{seconds}} -w {{seconds}} {{host}}`