Redirection

#Redirect stdout and stderr to a file
yourCommandName &> toFile.log
 
# Redirect and append both stdout and stderr to a file.
yourCommandName >> toFile.log 2>&1