Ping 用法说明

Naf*_*aly 0 ping

当我输入 ping -h 时,我会得到有关所有可能标志的帮助。

然而,前几个字符是:[-AaDdfnoQqRrv]

这应该是什么意思?根据我的理解,没有像 A 或 -a 这样的标志,至少没有解释。

tbe*_*nz9 6

您没有提及您使用的操作系统。从输出来看,我猜你正在使用某种 Linux 版本。

字符 [-AaDdfnoQqRrv] 是 Ping 命令的可能参数。Ping -h 只给出一个非常基本的帮助信息。我建议您阅读手册(又名手册页),您可以通过在命令行(在基于 *nix 的系统上)中键入以下内容来找到它。

man ping
Run Code Online (Sandbox Code Playgroud)

它将为您提供更多信息,例如:

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.
Run Code Online (Sandbox Code Playgroud)