Skip to content

ping: update page, add Chinese translation #15510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions pages.zh/common/ping.md
Original file line number Diff line number Diff line change
@@ -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 {{总的等待超时秒数}} {{主机地址}}`
2 changes: 1 addition & 1 deletion pages/common/ping.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}`
Loading