Bird
0
0

What does the tee command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - Pipes and Redirection
What does the tee command do in Linux?
AIt splits the output of a command to both the screen and a file simultaneously.
BIt merges multiple files into one.
CIt deletes files after displaying their content.
DIt changes file permissions.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of tee

    The tee command takes the output of a command and sends it to both the terminal (screen) and a file at the same time.
  2. Step 2: Compare options with this behavior

    Only It splits the output of a command to both the screen and a file simultaneously. describes this behavior correctly. Other options describe unrelated actions.
  3. Final Answer:

    It splits the output of a command to both the screen and a file simultaneously. -> Option A
  4. Quick Check:

    tee splits output = A [OK]
Quick Trick: Remember: tee shows output and saves it simultaneously [OK]
Common Mistakes:
  • Thinking tee merges files
  • Confusing tee with file deletion
  • Assuming tee changes permissions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes