当我输入 ping -h 时,我获得了所有可能标志的帮助。
但是前几个字符是:[-AaDdfnoQqRrv]
这是什么意思?根据我的理解,没有像 A 或 -a 这样的标志,至少没有对此的解释。
答案1
您没有提到您使用的是什么操作系统。根据输出判断,我猜您使用的是某种 Linux。
字符 [-AaDdfnoQqRrv] 是 Ping 命令的可能参数。Ping -h 仅提供非常基本的帮助消息。我建议阅读手册(又称 man page),您可以通过在命令行中输入以下内容来找到它(在基于 *nix 的系统上)。
man ping
它将为您提供更多信息,例如:
OPTIONS
-a Audible ping.
-A Adaptive ping. Interpacket interval adapts to round-trip time, so that effectively not more than one (or more, if preload is
set) unanswered probe is present in the network. Minimal interval is 200msec for not super-user. On networks with low rtt this
mode is essentially equivalent to flood mode.
-b Allow pinging a broadcast address.
-B Do not allow ping to change source address of probes. The address is bound to one selected when ping starts.