🎴 Flashcard Mode

Unix/Linux Commands and Shell Scripting

Card1 / 20
Mastered0
Review0
QuestionClick to flip

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

AnswerClick to flip back
A
command >> file
💡 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.

Change Mode