exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Amycert
7 months, 1 week ago
Selected Answer: C
C very easy and basic
upvoted 3 times
...
blk_542
9 months, 4 weeks 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
1 year, 7 months ago
Line C is the correct answer.
upvoted 2 times
...
CuriousLinuxCat
2 years, 1 month 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago