Bird
0
0

You want to redirect error messages to error.log but accidentally write command 2>>>. What is the problem?

medium📝 Debug Q6 of 15
Linux CLI - Pipes and Redirection
You want to redirect error messages to error.log but accidentally write command 2>>>. What is the problem?
AThe command will ignore errors
BErrors will be redirected correctly
CStandard output will be redirected instead
DSyntax error due to invalid redirection operator
Step-by-Step Solution
Solution:
  1. Step 1: Identify invalid operator

    The operator 2>>> is not valid in Linux shell syntax.
  2. Step 2: Understand shell reaction

    Shell will report a syntax error due to unexpected token.
  3. Final Answer:

    Syntax error due to invalid redirection operator -> Option D
  4. Quick Check:

    Invalid operator causes syntax error = A [OK]
Quick Trick: Use only 2> or 2>> for error redirection [OK]
Common Mistakes:
  • Adding extra > causing syntax error
  • Assuming 2>>> appends errors
  • Confusing with other shell syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes