簡體   English   中英

2>&1 和 2>>&1 有區別嗎?

[英]Is there diffrence in 2>&1 vs 2>>&1?

Linux 中的2>&12>>&1有區別嗎?

我知道 > 和 >>。 還知道 1,2,3 平均標准輸出/錯誤/輸入。

我在 bash 中遇到語法錯誤。

$ echo hello 2>>&1
-bash: syntax error near unexpected token `&'`

>>僅適用於真實文件路徑

$ echo hello 1>>/tmp/xx

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM