我有一个正在运行的命令会产生大量输出,我想在不写入文件的情况下使输出静音。我使用以下内容将所有输出发送到文件,但我又不想要任何文件输出:
command > out.txt 2>&1
我以前command > /dev/null在我的 CentOS 机器上使用过,但我在 Windows 上找不到类似的东西。
command > /dev/null
windows windows-7 windows-command-prompt stdout
stdout ×1
windows ×1
windows-7 ×1
windows-command-prompt ×1