Multiple choice technology operating systems

What do you use to forward errors to a file?

  1. 2> filename

  2. 1> filename

  3. &> filename

  4. 2> /dev/null

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Unix and Linux shell scripting, file descriptor 2 represents standard error. Using 2> filename redirects error messages to the specified file.