LPI
101-400 · Question #416
Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?
The correct answer is C. ls > data. See the full explanation below for the reasoning.
Question
Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?
Options
- Als 3> data
- Bls >& data
- Cls > data
- Dls >> data
How the community answered
(15 responses)- A13% (2)
- B7% (1)
- C80% (12)
Community Discussion
No community discussion yet for this question.