原创 shell---"2>&1" 是什麼意思

簡單來講ls -l > out.file 2>&1 &解釋:ls -l > out.file //將ls的輸出重定向到文件out.file2>&1 //在shell中,文件描述符通常是:STDIN,STDOUT,STDERR,即:0,1,2