Bird
0
0

Why does this command fail?

medium📝 Debug Q7 of 15
Linux CLI - Pipes and Redirection
Why does this command fail?
cat file.txt | tee
Atee does not accept input from pipe
Bcat cannot be piped into tee
Ctee requires a filename argument to write output
Dfile.txt does not exist
Step-by-Step Solution
Solution:
  1. Step 1: Understand tee's argument requirement

    tee needs a filename to write output to a file.
  2. Step 2: Analyze command failure

    No filename is given, so tee fails.
  3. Final Answer:

    tee requires a filename argument to write output -> Option C
  4. Quick Check:

    tee needs filename argument = tee requires a filename argument to write output [OK]
Quick Trick: tee always needs a filename unless output only [OK]
Common Mistakes:
  • Forgetting filename argument
  • Assuming tee works without arguments
  • Blaming pipe or cat command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes