Ravi Sir's Cards › AWS
bash -x vs bash -n?
This interview card answers: bash -x vs bash -n? -n checks syntax, runs nothing. -x runs and prints each step. Trace a part only.
Read card text
What this card says
What it is
-n checks syntax, runs nothing.
Why it matters
-x runs and prints each step.
How / example
Trace a part only.
set -x; ...; set +x