LPI
101-400 · Question #158
In order to use the output of ls to overwrite a file called bazz, which of the following command lines would you use?
The correct answer is D. ls >> bazz. The correct answer is 'ls >> bazz' because it is appended.
Understand SteelHead Deployment and Initial Configuration
Question
In order to use the output of ls to overwrite a file called bazz, which of the following command lines would you use?
Options
- Als > bazz
- Bls >& bazz
- Cls &> bazz
- Dls >> bazz
How the community answered
(47 responses)- A4% (2)
- B15% (7)
- C9% (4)
- D72% (34)
Explanation
The correct answer is 'ls >> bazz' because it is appended.
Topics
#bash redirection#output redirection#file append#shell I/O
Community Discussion
No community discussion yet for this question.