在 Linux中2>&1和2>>&1在 Linux 中有區別嗎?
我知道 > 和 >>。還知道 1,2,3 平均標準輸出/錯誤/輸入。
uj5u.com熱心網友回復:
我在 bash 中遇到語法錯誤。
$ echo hello 2>>&1
-bash: syntax error near unexpected token `&'`
>> 僅適用于真實檔案路徑
$ echo hello 1>>/tmp/xx
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/338698.html
