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.

Beginner9 lessons~5h
0/9 complete

Course content

Getting Started

  • Hello, Bash (and the Shebang)10 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