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

LPI Exam 101-500 Topic 1 Question 107 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 107
Topic #: 1
[All 101-500 Questions]

Which of the following commands redirects the output of ls to standard error?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

France
10 days ago
D) ls >>2 - Hmm, this looks like it might work, but it's actually just appending to a file named '2'.
upvoted 0 times
...
Viola
22 days ago
A) ls >-1 - Nah, that's just going to send the output to a file named '-1'.
upvoted 0 times
...
Tanja
28 days ago
E) ls |error - Haha, I like the creativity, but that's not how you redirect to standard error.
upvoted 0 times
Viola
13 days ago
A) ls >-1
upvoted 0 times
...
Margurite
15 days ago
C) ls >&2 - Oh, I see, thanks for clarifying!
upvoted 0 times
...
Venita
17 days ago
A) ls >-1 - That's incorrect, the correct command is C) ls >&2
upvoted 0 times
...
...
Celeste
1 months ago
I'm not sure, but I think ls >&2 makes sense based on the options given.
upvoted 0 times
...
Annice
1 months ago
C) ls >&2 - This is the correct answer. Redirecting the output of ls to standard error is the way to go.
upvoted 0 times
Felton
13 days ago
B) ls <
upvoted 0 times
...
Matilda
21 days ago
A) ls >-1 - That's not the correct command to redirect the output to standard error.
upvoted 0 times
...
...
Millie
1 months ago
I agree with Casandra, because >&2 redirects output to standard error.
upvoted 0 times
...
Casandra
2 months ago
I think the answer is C) ls >&2.
upvoted 0 times
...