Multiple choice technology operating systems

How can you append the output of a command to a file?

  1. command << file

  2. command > file

  3. command <> file

  4. command >> file

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

The >> operator in Unix/Linux shell redirects output and appends it to a file, preserving existing content. The > operator overwrites the file, << is for here-documents (inline input), and <> is not a standard shell redirection operator.