文件描述符:Linux Shell中“2>&1”含义

0、1、2是标准输入、输出和错误

standard input  0  <,<<

standard output 1 >,>>

standard error output 2 2>,2>>

2>&1 把标准错误输出重定向到文件描述符1中

posted @ 2021-02-24 09:41  Victor-ZhuFeng  阅读(97)  评论(0编辑  收藏  举报