Beginner
Linux & Shell Scripting
Q16 / 100
What is the difference between ">" and ">>" in shell redirection?
Correct! Well done.
Incorrect.
The correct answer is B) ">" redirects output to a file, overwriting its existing contents, while ">>" appends output to the end of the file without erasing existing content
B
Correct Answer
">" redirects output to a file, overwriting its existing contents, while ">>" appends output to the end of the file without erasing existing content
Explanation
">" truncates and overwrites the target file with new output, while ">>" preserves existing content and adds the new output after it.
Progress
16/100