Files
tldr/pages.zh/common/fping.md

20 lines
581 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# fping
> 一个更强大的 ping可以同时 ping 多个主机。
> 更多信息:<https://fping.org>。
- 列出范围内所有主机的状态:
`fping {{192.168.1.{1..254}}}`
- 列出从子网掩码生成的存活主机:
`fping {{-a|--alive}} {{-g|--generate}} {{192.168.1.0/24}}`
- 列出从 IP 范围生成的存活主机,并修剪每次探测的结果:
`fping {{-q|--quiet}} {{-a|--alive}} {{-g|--generate}} {{192.168.1.1}} {{192.168.1.254}}`
- 列出从子网掩码生成的不可达主机:
`fping {{-u|--unreach}} {{-g|--generate}} {{192.168.1.0/24}}`