Redirect stdout and stderr

From PedrosBrainDump

To redirect a stderr and stdout to a file you can send the stderr to the stdin and write the stdin into a file.

command > outputfile 2>&1