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

Linux Foundation Exam LFCS Topic 2 Question 53 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 53
Topic #: 2
[All LFCS Questions]

When running the command

sed -e "s/a/b/" /tmp/file >/tmp/file

While /tmp/file contains data, why is /tmp/file empty afterwards?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Alesia
5 days ago
I think the answer is C. The shell overwrites the target file before the command starts.
upvoted 0 times
...

Save Cancel