📜  2> dev null - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:09.946000             🧑  作者: Mango

代码示例1
> file redirects stdout to file
1> file redirects stdout to file
2> file redirects stderr to file
&> file redirects stdout and stderr to file

2&1> file redirects stdout and stderr to file

/dev/null is the null device it takes any input you want and throws it away. It can be used to suppress any output.