Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 101-500 Topic 1 Question 97 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 97
Topic #: 1
[All 101-500 Questions]

Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

Timmy
2 days ago
I'm not sure, but I think D) ls >> data appends the output of ls to the file instead of overwriting it.
upvoted 0 times
...
Natalie
6 days ago
I agree with Royce, using > will create or overwrite the file with the output of ls.
upvoted 0 times
...
Royce
7 days ago
I think the answer is C) ls > data.
upvoted 0 times
...

Save Cancel