Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2>&1将采用 stderr 并将其输出到 stdout。
2>&1
2>filename.txt将采用 stderr 并将其转储到 filename.txt
2>filename.txt
我如何将它们一起删除?可能是某种/dev/null等价物?
/dev/null
谢谢!
在 Windows 上,您可以通过nul设备完成此操作。
nul
2>nul