@okamigo, E is absolutely false because it isn't even using the re-directional symbol (>).
The correct answer is C.
D is wrong because the append symbol (>>) cannot append to STDERR(2). It needs a file to append the out of 'ls' to.
C is correct: ls>&2 sends the ls output to the 2 (stderr) location
A, B, D, and E are wrong:
ls>-1 creates a file -1 that is the output of ls
<<ERR sets the ERR string as the end of input
ls>>2 would append to a file '2'
ls |error is an invalid command
upvoted 3 times
...
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
CuriousLinuxCat
Highly Voted 3 years agoNinymo
Most Recent 3 months, 3 weeks agookamigo
3 years, 3 months agoanhcq
2 years, 8 months ago[Removed]
2 years, 8 months ago