Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 101-500 topic 1 question 89 discussion

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

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

  • A. ls 3> data
  • B. ls >& data
  • C. ls > data
  • D. ls >> data
  • E. ls >>> data
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Amycert
1 year, 2 months ago
Selected Answer: C
C very easy and basic
upvoted 2 times
...
blk_542
1 year, 5 months ago
Both C and B are correct, tested all options in CentOS. but I agree the only answer recognized as correct (for some reason) will be C.
upvoted 2 times
...
amadeu
2 years, 2 months ago
Line C is the correct answer.
upvoted 2 times
...
CuriousLinuxCat
2 years, 9 months ago
Correct.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...