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

In Bash, inserting 1>&2 after a command redirects
C) standard output to standard error.
A) standard error to standard input.
B) standard input to standard error.
D) standard error to standard output.
E) standard output to standard input.

Linux Foundation LFCS Exam - Topic 5 Question 119 Discussion

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

In Bash, inserting 1>&2 after a command redirects

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Valda
2 days ago
Yup, C is the right answer!
upvoted 0 times
...
Louvenia
7 days ago
Wait, are you sure? I thought it was D).
upvoted 0 times
...
Stephaine
12 days ago
Totally agree with that!
upvoted 0 times
...
Marguerita
17 days ago
That's C) standard output to standard error.
upvoted 0 times
...
Jaleesa
23 days ago
I recall that 1>&2 means sending output to error, so that would be C, right? But I’m not completely confident.
upvoted 0 times
...
Carmen
28 days ago
I practiced a similar question where we had to redirect errors. I feel like the answer is D, but I could be wrong.
upvoted 0 times
...
Rosendo
1 month ago
I'm not entirely sure, but I remember something about file descriptors. Isn't 1 for stdout and 2 for stderr?
upvoted 0 times
...
Jenifer
1 month ago
I think 1>&2 redirects standard output to standard error, which might be option C?
upvoted 0 times
...

Save Cancel