Setup
Bash is already on your system if you're on Linux or macOS. Windows users can get it via WSL2 or Git Bash.
Lessons
1
Your First Script
A Bash script is just a text file with commands in it. The magic is in the sheba…
→
2
Variables & Input
Bash variables have no types. Everything is a string. This is either simple or c…
→
3
Control Flow
Bash conditionals look strange at first. The [ ... ] is actually a command (test…
→
4
Functions
Bash functions are reusable blocks of code. They work differently from functions…
→
5
Working with Files
Bash was born to manipulate files. Half the Unix philosophy is "everything is a …
→
6
Pipes & Redirection
Pipes are how Unix tools talk to each other. Each small tool does one thing — pi…
→
7
Mini Project: Backup Script
A practical backup script that compresses directories, keeps the last N backups,…
→
8
Bash Cheatsheet
Daily commands and scripting syntax on one page.
→