How can you append the output of a command to a file?
-
command << file
-
command > file
-
command <> file
-
command >> file
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.