shell 中 标准输出和错误输出

时间:2023-01-12 04:54:44
命令 标准输出 标准错误
>/dev/null 2>&1 丢弃 丢弃
2>&1 >/dev/null 丢弃 屏幕
1>/dev/null 丢弃 屏幕
2>/dev/null 屏幕 丢弃
     

相关文章