Complete the code to redirect error messages to a log file.
command [1] error.logUsing 2> redirects the standard error (stderr) to the specified file.
Complete the code to append error messages to a log file without overwriting it.
command [1] error.log2>> appends standard error messages to the log file.
Fix the error in the code to redirect both standard output and error to the same log file.
command > log.txt [1] log.txt2>&1 redirects standard error to the same place as standard output.
Fill both blanks to redirect standard output to a file and standard error to another file.
command [1] out.log [2] err.log
> redirects standard output, and 2> redirects standard error.
Fill all three blanks to redirect standard output to append to a file, standard error to append to another file, and combine both outputs to the console.
command [1] out.log [2] err.log [3]
>> appends standard output, 2>> appends standard error, and | tee -a shows output on console while appending.