Redirect stderr and stdout to Bash

advertisements

I want to redirect both stdout and stderr of a process to a single file. How do I do that in Bash?


Take a look here. Should be:

yourcommand &>filename

(redirects both stdout and stderr to filename).