Cyber Monday 2024! 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 9 Question 92 Discussion

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

How can the normal output of a command be written to a file while discarding the error output?

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

Dallas
2 days ago
I think the answer is A) command >2>file 1&>/dev/null.
upvoted 0 times
...
Ilda
2 days ago
D looks interesting, but I'm not sure if '2&>1' is the right way to redirect the error output. Hmm, need to double-check that.
upvoted 0 times
...
Clorinda
2 days ago
I think E is the correct answer. Sending the output to a file and discarding the error output is a classic Unix trick.
upvoted 0 times
...
Altha
6 days ago
Option A looks good, but I'm not sure about the syntax with the '2>' part. Seems a bit confusing.
upvoted 0 times
Junita
2 days ago
Option A is correct. It redirects the error output to /dev/null while writing the normal output to a file.
upvoted 0 times
...
...

Save Cancel