Redirect stderr and stdout in Bash [duplicate]

Take a look here. It should be:

yourcommand &> filename

It redirects both standard output and standard error to file filename.

Leave a Comment