Question: In the Bash shell, what is the difference between piping into | and piping into |&?

  1. Piping into | pipes both stdout and stderr. Piping into |& pipes only stderr.
  2. Piping into | pipes stdout. Piping into |& pipes stdout and stderr.
  3. Piping into | pipes both stdout and stderr. Piping into |& pipes only stdout.
  4. Piping into | pipes stdout. Piping into |& pipes all open file descriptors.

Answer: The correct answer of the above question is Option B:Piping into | pipes stdout. Piping into |& pipes stdout and stderr.