Is there difference in 2>&1
and 2>>&1
in Linux?
I know about > and >>. Also know about 1,2,3 mean standard output/error/input.
I got a syntax error in bash.
$ echo hello 2>>&1
-bash: syntax error near unexpected token `&'`
>>
only works with a real file path
$ echo hello 1>>/tmp/xx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.