Question: What is the key difference between a redirect (>) and piping to the tee command?

  1. The tee command sends output only to STDOUT and STDERR.
  2. A redirect sends output to STDOUT and a file, whereas a tee sends output only to STDOUT.
  3. Nothing, they are the same.
  4. The tee command sends output to STDOUT and a file, whereas a redirect sends output only to a file.

Answer: The correct answer of the above question is Option D:The tee command sends output to STDOUT and a file, whereas a redirect sends output only to a file.