1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

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>
This commit is contained in:
witt 2025-02-01 12:34:21 +08:00 committed by GitHub
parent 739e6a1856
commit a0e363e25f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 1 deletions

32
pages.zh/common/ping.md Normal file
View file

@ -0,0 +1,32 @@
# ping
> 向网络主机发送 ICMP (ECHO_REQUEST) 数据包。
> 更多信息:<https://manned.org/ping>.
- Ping 主机:
`ping {{主机地址}}`
- 仅 Ping 主机特定次数:
`ping -c {{次数}} {{主机地址}}`
- Ping 主机,指定请求之间的间隔(以秒为单位)(默认为 1 秒):
`ping -i {{间隔秒数}} {{主机地址}}`
- Ping 主机而不尝试查找地址的符号名称:
`ping -n {{主机地址}}`
- Ping 主机并在收到数据包时响铃(如果您的终端支持):
`ping -a {{主机地址}}`
- 如果没有收到响应,也显示一条消息:
`ping -O {{主机地址}}`
- Ping 主机,指定 ping 次数、每个数据包的响应超时 (`-W`)和整个 ping 运行的总时间限制 (`-w`) :
`ping -c {{次数}} -W {{响应超时秒数}} -w {{总的等待超时秒数}} {{主机地址}}`

View file

@ -27,6 +27,6 @@
`ping -O {{host}}`
- Ping a host with specific number of pings, timeout (`-W`) for each reply, and total time limit (`-w`) of the entire ping run:
- 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}}`