I want to redirect both stdout and stderr of a process to a single file. How do I do that in Bash?
Curiously, this works:
yourcommand &> filename
But this gives a syntax error:
yourcommand &>> filename syntax error near unexpected token `>'
You have to use:
yourcommand 1>> filename 2>&1