# Learn Bash / Shell

> The language of the terminal, mastered safely: pipes, quoting, exit codes, traps and real automation: until your scripts are tools colleagues trust in production. The full outline of the LoWisa Bash / Shell course: 13 levels, 38 lessons. The first level is free.

The language of the terminal, mastered safely: pipes, quoting, exit codes, traps and real automation: until your scripts are tools colleagues trust in production.

This is the whole Bash / Shell course in the LoWisa phone app, level by level: 13 levels, 38 lessons and 114 ideas, each taught and then checked. The first level, Start Here: Speaking to the Operating System, is free.

## What you can do as you go

| Where you are | What you can do |
| --- | --- |
| Start Here: Level 4 | You command the terminal: processes, pipes, quoting and exit codes are instruments, not incantations. |
| Levels 5–8 | You write real scripts: control flow, functions, text processing with grep/sed/awk, and process management. |
| Levels 9–11 | You build reliable, secure automation: traps, idempotency, cron, ssh and injection-proof handling of input. |
| Levels 12–13 | You lint, test and maintain production scripts: and know precisely when shell is the wrong tool. |
| Project ladder | Five desktop app projects from a safe scaffolder to a portable toolkit: the automation colleagues actually trust. |

## The Bash / Shell course, level by level

| Level | Lessons in it |
| --- | --- |
| Start Here: Speaking to the Operating System | Shells, Commands and Processes; Interactive Shell vs Script |
| Level 1: Shell Foundations | Commands and Arguments; Files and Directories; Command Exit Status |
| Level 2: Variables & Expansion | Shell Variables; Quoting; Parameter and Command Expansion |
| Level 3: Pipes & Redirection | Standard Input and Output; Pipes; File Descriptors and Redirection |
| Level 4: Control Flow | Conditions; Loops; Case Statements |
| Level 5: Functions & Scripts | Functions; Arguments and Parameters; Organising Reusable Shell Scripts |
| Level 6: Text & Data Processing | Pattern Matching; Grep, Sed and Awk Integration; Structured Command Pipelines |
| Level 7: Processes & Jobs | Processes and Jobs; Signals; Background and Foreground Work |
| Level 8: Reliable Shell Programming | Exit Codes; Error Handling and Traps; Writing Safe Scripts |
| Level 9: Automation | Filesystem Automation; Remote and Scheduled Work; CI/CD and Operations Patterns |
| Level 10: Security | Injection and Quoting Risks; Secrets and Privileges; Secure Shell Automation |
| Level 11: Portability & Quality | Bash vs POSIX Shell; Linting and Testing; Maintainable Production Scripts |
| Level 12: Shell Mastery | Complex Process Composition; Debugging Shell Behaviour; Replacing or Retaining Shell Appropriately |

Every level ends with a checkpoint and flashcards on what it taught.

## Start Here: Speaking to the Operating System: what the free first level teaches

**Shells, Commands and Processes**

- **What a shell is.** A **shell** reads your line, starts programs and wires their inputs and outputs: a REPL for the operating system.
- **Commands are processes.** Every command runs as a **process**: the shell forks, executes and waits, then reads its exit status.
- **PATH.** The shell finds programs by walking **PATH**: which ls answers the eternal “why is the wrong one running”.

**Interactive Shell vs Script**

- **Scripts.** A **script** is shell commands in a file: the shebang line names which interpreter runs it.
- **The shebang.** The **shebang**: #!/usr/bin/env bash: makes a script an executable program in its own right.
- **Same language, higher stakes.** Interactive mistakes you see; script mistakes **repeat** at 3am: scripts deserve engineering discipline.

## Projects you build

The course has 5 projects, built in the LoWisa desktop app, each in the role of someone who does this work.

| Role | Project | The situation |
| --- | --- | --- |
| Automation Engineer | Project Scaffolder Script | Your team starts projects with twenty manual steps. Build the scaffolder: one script that creates the structure, git repo and config: idempotent, safe, and pleasant to use. |
| DevOps Engineer | Log Triage Pipeline | Ops drops you a directory of rotating service logs. Build the triage kit: pipelines that surface error spikes, top offenders and timelines: grep, sed, awk and sort doing their one jobs. |
| Shell Engineer | Rescue a Dangerous Deploy Script | You inherit the deploy script everyone fears: unquoted variables, a near-miss rm -rf, silent failures, secrets on the command line. Make it safe without changing what it deploys. |
| Senior Platform Engineer | Backup & Restore Suite | A small company needs real backups: nightly cron runs, rotation, integrity checks, and a tested restore path: because a backup that never restored is a rumour. |
| Shell Specialist | Portable CLI Toolkit | Package your accumulated shell craft: a small toolkit of five production-grade utilities (retry, parallel, watchdir, humanise, notify): POSIX-portable core, tested, versioned, documented. |

## How you learn it

- **One idea at a time.** Each lesson teaches a few ideas and asks you about each before it moves on.
- **A checkpoint and flashcards at the end of every level.** See [Checkpoints and flashcards](/help/checkpoints-and-flashcards/).
- **Games on what you have learned.** See [Revision games](/help/revision-games/).
- **On your phone.** The app is on Google Play and the App Store. See [Getting started](/help/getting-started/).

## Frequently asked questions

### How many levels does the LoWisa Bash / Shell course have?

13 levels with 38 lessons, from Start Here: Speaking to the Operating System to Level 12: Shell Mastery.

### Is the Bash / Shell course free?

The first level, Start Here: Speaking to the Operating System, is free, with its checkpoint and flashcards. A plan opens the rest; see Plans and credits in the Help centre.

### Where does the Bash / Shell course start?

With Start Here: Speaking to the Operating System. Its first lesson is "Shells, Commands and Processes".

## Start Bash / Shell with the free first level

LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/bash/ · Updated 2026-11-25
