Redirect stdout and stderr
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
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