Manuals / Linux Shell Daily / Chapter 3

Core · intermediate · ~35 min · Chapter 3 of 3

Exit codes & scripts

$? and simple bash scripts for repetitive checks.

Path progress
83%

Step 1 of 2

Key idea

0 means success; non-zero means failure — CI depends on this.

Key ideaDrag stickies · tap for tips
Study mapDrag stickies · tap for tipsKeep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Assert the UIdrag · tap →Retry wiselydrag · tap →Seed datadrag · tap →Close the loopdrag · tap →Keep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Pathwise hackdrag · tap →Key ideadrag · tap →Go deeperdrag · tap →Follow the dashed drag · tap →

Quick check

Exit code 0 usually means…

Do this now

Write 3 notes on: Exit codes.

Was this step clear?
Chapter learning outcomes
  • Exit codes
  • set -e
  • Tiny scripts

Clear these before you leave