ScriptingFoundationsAvailable now

Bash & Shell Scripting

Turn the commands you already know into automation that runs itself.

Every team has a folder of scripts holding the whole operation together. This track teaches you to write them the right way — variables and quoting that don't bite, loops and functions, argument parsing, and the strict-mode error handling that stops a script from doing damage while you're asleep. You write real scripts and run them live, not slideware.

Start free →12 lessons · 2 freeNo signup needed to try the first lesson.

By the end, you can

  • Write reusable scripts with functions, arguments, and getopts flags
  • Loop over files and data and branch on conditions, safely quoted
  • Use set -euo pipefail and exit codes the way CI does to pass or fail
  • Run background jobs and trap signals to clean up after yourself

What's inside

Free → Pro

Where this track goes

The first lessons are free — no card. Pro unlocks the production depth that turns this into a job-ready skill.

Free — you can do this

Free

0 / 2 free lessons complete

  • Variables & output

    Assignment, quoting (the window vs the wall), echo and redirection.

  • Conditionals & tests

    if with [ … ], file/string tests, and &&/|| chaining.

Pro — what you unlock next

Pro
  • Loops & control flow

    for/while over lists, arithmetic with (( … )), and clean iteration.

  • Functions & arguments

    Reusable functions, positional params, and getopts flag parsing.

  • Arrays & parameter expansion

    Safe "${arr[@]}" iteration and in-shell string surgery.

  • Strict mode & exit codes

    set -euo pipefail, $?, and the contract CI uses to pass or fail.

  • Processes & signals

    Background jobs, $!, wait, and trap-based cleanup you'd run unattended.

  • Build-a-script capstone

    A strict-mode, data-driven health-check script from a brief.

Unlock with Pro →

Ready to start?

Create a free account to save progress across every track.

Create free account →