Multiple choice technology operating systems

What is the result of doing the following? date >> file

  1. The date output is redirected to the file.

  2. The date output is redirected and appended to the end of the file.

  3. The date output is redirected and appended to the beginning of the file.

  4. None of the above

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

The >> operator in shell redirects output and appends it to the end of the specified file. If the file doesn't exist, it will be created. The > operator would overwrite the file instead of appending. Appending always happens at the end of the file, not the beginning.