&>/dev/null& 等价于 >/dev/null 2>&1

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010164190/article/details/85295447
分解:">/dev/null 2>&1"

1:/dev/null 代表空设备文件
1:1 表示stdout标准输出;系统默认值是1,所以">/dev/null"等同于 "1>/dev/null"
2:2 表示stderr标准错误
4:& 表示等同于的意思,2>&1,表示2的输出重定向等同于1

猜你喜欢

转载自blog.csdn.net/u010164190/article/details/85295447