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 5 Question 94 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 94
Topic #: 5
[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:

Carin
3 days ago
I got this! Option A is the way to go. Redirecting the error output to /dev/null is the classic move.
upvoted 0 times
...
Edward
12 days ago
I'm not sure, but I think A) makes more sense because it redirects error output to null.
upvoted 0 times
...
Krissy
13 days ago
Haha, I bet the person who wrote this question is a shell script master! Time to impress the examiner with my command-line skills.
upvoted 0 times
...
Adell
16 days ago
I disagree, I believe the correct answer is E) command >file 2>/dev/null.
upvoted 0 times
...
Tony
17 days ago
I think the answer is A) command >2>file 1&>/dev/null.
upvoted 0 times
...
Dolores
18 days ago
D is the way to go. It sends the normal output to the file and the error output to the same place as the normal output.
upvoted 0 times
Jarod
16 hours ago
A) command >2>file 1&>/dev/null
upvoted 0 times
...
...
Page
22 days ago
Option A seems like the right choice. It sends the error output to /dev/null while writing the normal output to the file.
upvoted 0 times
...
Sharika
24 days ago
I think option E is the correct answer. It redirects the normal output to the file and discards the error output.
upvoted 0 times
Susana
17 hours ago
User 2: Yeah, option E redirects the normal output to the file and discards the error output.
upvoted 0 times
...
Luann
2 days ago
User 1: I think option E is the correct answer.
upvoted 0 times
...
...

Save Cancel