Multiple choice technology programming languages

It is possible to redirect the output of a process to more than one source

  1. True

  2. False

  3. True but needs root permission

  4. None

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

Using the tee command, you can redirect stdout to multiple files and/or processes simultaneously. Example: ls | tee file1 file2 | less sends output to both files and the pager.

AI explanation

Unix lets you fan out a process's output using tools like tee, which writes the same stream to multiple files (or a file and stdout) simultaneously, so redirecting to more than one destination is indeed possible. This doesn't require any special root privilege — it works with an ordinary user's own files and permissions.