shell中>/dev/null 2>&1

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/DittyChen/article/details/86715455

>/dev/null ----输出重定向到空,即不输出到控制台

 2>&1 -----错误定位到输出

详情见下

https://www.cnblogs.com/520playboy/p/6275022.html

猜你喜欢

转载自blog.csdn.net/DittyChen/article/details/86715455