Bash Scripting

A shell is the program that turns typed commands into actions: it reads a line, interprets it, runs it, and repeats. Bash (the Bourne Again SHell) is the default shell on most Linux systems and macOS, and it is the language behind build scripts, CI/CD pipelines, containers, and server automation. This track removes the mystery around the shell, compares the major interpreters, and teaches you to write real Bash on both Linux and Windows.

Scope: Study the topics in order, run every example in a real terminal, and adopt the robust-scripting habits from Phase 5 before you automate anything important.

Bash Study Progress

0% Complete
# BASH Topic Description
PHASE 1: THE SHELL
01What Is a Shell?Terminal, shell, and kernel; the read-eval-print loop.
02Shell Interpreters Comparedsh, dash, bash, zsh, fish, ksh, and PowerShell.
03Running Scripts on Linux & WindowsNative, WSL2, Git Bash, Cygwin, shebang, permissions.
PHASE 2: THE LANGUAGE
04Commands & SyntaxSimple commands, builtins, PATH, aliases, substitution.
05Quoting & EscapingWord splitting, single and double quotes, escapes.
06Variables & ParametersAssignment, special parameters, string operations.
07Expansion & GlobbingBrace, tilde, command, and filename expansion order.
08Arrays & Associative MapsIndexed arrays and key-value maps.
09Redirection & PipelinesStandard streams, pipes, here-docs, process substitution.
PHASE 3: PROGRAMMING
10Conditionals & Testsif, test, [[ ]], case, and boolean logic.
11Loops & Iterationfor, while, until, select, break, and continue.
12FunctionsArguments, return codes, local scope, and libraries.
13Arithmetic & MathInteger math, arithmetic expansion, and bc.
PHASE 4: SYSTEM & TEXT
14Files & DirectoriesFile tests, find, reading files, and line-by-line loops.
15Text Processinggrep, sed, awk, and regular expressions.
16Processes, Signals & JobsBackground jobs, wait, traps, and subshells.
17Environment & Startup FilesLogin, interactive, and non-interactive shell startup.
PHASE 5: ROBUST ENGINEERING
18Robust Script EngineeringStrict mode, ShellCheck, debugging, and testing.
PHASE 6: PRACTICE & REFERENCE
19Lab ExamplesRun and modify single-file practice scripts.
20Study ProjectsBackups, reports, CLI menus, and health checks.
21References & ToolsManuals, guides, linters, and practice sites.
Credits: Lesson content drafted with DeepSeek via Fireworks AI. References: free tutorials below.

Free References

For the full categorized list — manuals, free books, linters, practice games, and sample repositories — see the References & Tools page.