Multiple choice technology operating systems

Which command is used to redirect output to a file as well the standard output ?

  1. 1>

  2. tee

  3. redirect

  4. trap

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The tee command reads from standard input and writes to both a file and standard output simultaneously. This is useful when you want to save output to a file while also seeing it on screen. Operators like > only redirect to files, redirect and trap are unrelated commands.