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 LFCS Exam - Topic 6 Question 22 Discussion

How can the normal output of a command be written to a file while discarding the error output?
E) command >file 2>/dev/null
A) command >2>file 1&>/dev/null
B) command < output > /dev/null
C) command > discard-error > file
D) command > /dev/null 2&>1 output

Linux Foundation LFCS Exam - Topic 6 Question 22 Discussion

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

0/2000 characters
Lili
8 months ago
Yeah, E is the standard way to do it.
upvoted 0 times
...
Lonny
9 months ago
Wait, can you really discard errors like that?
upvoted 0 times
...
Colene
9 months ago
Definitely not option D, that's wrong.
upvoted 0 times
...
Yoko
9 months ago
I thought it was option A at first.
upvoted 0 times
...
Shawnna
9 months ago
Option E is correct!
upvoted 0 times
...
Mozell
9 months ago
I keep mixing up the syntax, but I think option E makes the most sense for what the question is asking.
upvoted 0 times
...
Jeanice
10 months ago
I practiced a similar question, and I feel like option C is close, but it doesn't seem right for discarding errors.
upvoted 0 times
...
Murray
10 months ago
I'm not entirely sure, but I remember something about using `2>` for error redirection. Maybe it's option A?
upvoted 0 times
...
Georgiann
10 months ago
I think the answer might be E, where it redirects the error output to /dev/null while saving the normal output to a file.
upvoted 0 times
...
Caprice
10 months ago
You're right, Louisa. The question is asking about the increase in bond value, not the total bond value. If the common stock price goes up by $1, then the bond value will increase by $50 (1/20 of the $1,000 bond value).
upvoted 0 times
...
Zack
10 months ago
Based on my understanding of how service catalogs work, the REQ number likely represents the individual item in the order, so I'll select option D.
upvoted 0 times
...
Marsha
10 months ago
This seems like a straightforward question about date/time formats. I'll think through the options carefully and choose the one that best captures historical activities.
upvoted 0 times
...

Save Cancel