Bash Course
Bash is the shell that runs behind the terminal on nearly every Linux server and Mac — learning to script it turns repetitive command-line work into something you write once and run forever.
What you'll learn
This course starts with the absolute basics — what a shell script is, the shebang line, and making a file executable — then works through the core building blocks every script needs: variables, reading user input and command-line arguments, conditionals, and the three loop forms. From there it moves into the tools that make Bash genuinely useful for real work: functions, arrays, Bash's built-in string manipulation, reading and writing files, and chaining commands together with pipes and redirection.
The final two lessons tie everything together — proper exit-code error handling with set -euo pipefail, and a complete, realistic automation script that pulls in nearly everything covered earlier. Every example shows a real script alongside the exact terminal output running it produces.
Lessons
- Introduction
- Variables
- User Input & Arguments
- Conditionals
- Loops
- Functions
- Arrays
- String Manipulation
- Reading & Writing Files
- Pipes & Redirection
- Exit Codes & Error Handling
- A Real Automation Script