nerdexam
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)
  • A
    13% (2)
  • B
    7% (1)
  • C
    80% (12)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice