Shell Scripting Fundamentals

Bash basics — echo, variables, loops, and the art of quoting.

Learn Bash from scratch: shebangs, variables, quoting, conditionals, loops, functions, pipes, and exit codes. Every lesson runs in a real sandboxed shell — no root, no drama.

Learn with Ada, your AI coding mentor — ask questions or tap I’m stuck in any lesson for a nudge without spoilers.

Beginner9 lessons~5h
First lesson free

Try lesson 1 without an account. Sign in to unlock the remaining 8 lessons and save progress.

Course content

Getting Started

  • Hello, Bash (and the Shebang)Free10 min

Core Syntax

  • 🔒Variables, Quoting & Word Splitting15 min
  • 🔒if, test, and [ ] vs [[ ]]15 min
  • 🔒for, while, and C-style loops15 min

Reusable Scripts

  • 🔒Functions & Return Codes15 min

Unix Power

  • 🔒Pipes, >, >>, and 2>&118 min

Robustness

  • 🔒Exit Codes & $?12 min

Shell Oddities

  • 🔒$*, $@, and the Empty String Trap15 min

Project

  • 🔒Mini Project: Line Counter20 min