Redirect both stdout and stderr to a file in bash
The syntax to redirect both is:
command &> logfile
If you want to append to the file instead of overwrite:
command &>> logfile
This operator is now functional from Bash 4, final release