Is there difference in 2>&1
and2>>&1
in Linux?
I know about > and >>. Also know about 1,2,3 mean standard output/error/input.
CodePudding user response:
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