不明白 "ping "website" > list" 是什么
Don't understand what "ping "website" > list" is
有一次考试,我遇到了这个问题,但找不到答案。
确切的词翻译为:“命令“ping www.example.com > list”在 cmd 中执行什么操作”在谷歌搜索 1 小时后,我没有找到关于“> list”部分的任何信息。
我找到的所有信息都是关于 ping 和 list 的,但与词缀“list”(如果有的话)无关。
我也不确定我在寻找什么,所以任何东西都可能有用。
>
运算符是将左边命令的输出重定向到右边的文件。基本语法是:
command > file
这意味着在您的示例中 ping www.example.com > list
ping 命令是在 www.example.com 上完成的,而不是将 ping 命令的输出写入命令 window,而是将输出写入名为“list”的文件。
ping 命令输出如下所示:
C:\>ping www.example.com
Pinging www.example.com [93.184.216.34] with 32 bytes of data:
Reply from 93.184.216.34: bytes=32 time=93ms TTL=56
Reply from 93.184.216.34: bytes=32 time=93ms TTL=56
Reply from 93.184.216.34: bytes=32 time=93ms TTL=56
Reply from 93.184.216.34: bytes=32 time=93ms TTL=56
Ping statistics for 93.184.216.34:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 93ms, Maximum = 93ms, Average = 93ms
对于您的示例,它不会显示在屏幕上,而是写入文件“列表”。我建议为目标文件名使用适当的文件扩展名,例如“list.txt”。
有一次考试,我遇到了这个问题,但找不到答案。 确切的词翻译为:“命令“ping www.example.com > list”在 cmd 中执行什么操作”在谷歌搜索 1 小时后,我没有找到关于“> list”部分的任何信息。
我找到的所有信息都是关于 ping 和 list 的,但与词缀“list”(如果有的话)无关。
我也不确定我在寻找什么,所以任何东西都可能有用。
>
运算符是将左边命令的输出重定向到右边的文件。基本语法是:
command > file
这意味着在您的示例中 ping www.example.com > list
ping 命令是在 www.example.com 上完成的,而不是将 ping 命令的输出写入命令 window,而是将输出写入名为“list”的文件。
ping 命令输出如下所示:
C:\>ping www.example.com
Pinging www.example.com [93.184.216.34] with 32 bytes of data:
Reply from 93.184.216.34: bytes=32 time=93ms TTL=56
Reply from 93.184.216.34: bytes=32 time=93ms TTL=56
Reply from 93.184.216.34: bytes=32 time=93ms TTL=56
Reply from 93.184.216.34: bytes=32 time=93ms TTL=56
Ping statistics for 93.184.216.34:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 93ms, Maximum = 93ms, Average = 93ms
对于您的示例,它不会显示在屏幕上,而是写入文件“列表”。我建议为目标文件名使用适当的文件扩展名,例如“list.txt”。