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.
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
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
Free0 / 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
ProLoops & 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.
Ready to start?
Create a free account to save progress across every track.