101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 112


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

Show Answer
Correct Answer: B

In Bash, '1' represents standard output (stdout) and '2' represents standard error (stderr). Using '1>&2' after a command directs the standard output to the standard error stream. Therefore, the insertion of '1>&2' after a command means that standard output is being redirected to standard error.

Discussion

1 comment
Sign in to comment
blk_542Option: B
Nov 20, 2022

B: 0: stdin, 1: stout, 2: sterr