Multiple choice technology programming languages

Shell Scripting options to debug and checking for syntax errors

  1. sh -x AND sh -n

  2. sh -X AND sh -N

  3. sh -xn

  4. sh -nx

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

The -x option enables execution tracing (xtrace) for debugging, showing commands as they are executed. The -n option reads commands but does not execute them, allowing checking for syntax errors.