Redirection and text processing · Question 8 of 12
What does ls > list.txt do if list.txt already exists?
1 answer is correct. Easy Created with AI
Show answer
Answer
- D The output of ls overwrites the previous contents
Explanation
> redirects standard output to a file and empties it first. Appending would be >>, and screen plus file at the same time needs tee.