Bird
0
0

Identify the error in this command:

medium📝 Debug Q6 of 15
Linux CLI - Pipes and Redirection
Identify the error in this command:
ls | tee -a
ANo error, command is correct
BMissing filename after -a option
CThe pipe symbol is incorrect
Dtee cannot be used with ls
Step-by-Step Solution
Solution:
  1. Step 1: Check tee syntax with -a

    The -a option requires a filename to append output.
  2. Step 2: Analyze given command

    No filename is provided after -a, causing an error.
  3. Final Answer:

    Missing filename after -a option -> Option B
  4. Quick Check:

    tee -a needs filename = Missing filename after -a option [OK]
Quick Trick: Always provide filename after -a with tee [OK]
Common Mistakes:
  • Omitting filename after -a
  • Thinking tee can't work with ls
  • Misusing pipe symbol

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes