Module 3 — Shell Scripting
Turn the Linux commands you know into automation: scripts, variables, I/O and exit codes, conditionals, loops, functions, and writing robust Bash.
Lesson: Your First Bash Scripts
What you'll learn What a Bash script actually is, and how the "shebang" line tells Linux how to ...
Lesson: Streams, Redirection & Exit Codes
What you'll learn The three standard streams every program has: stdin, stdout, and stderr. How t...
Lesson: Conditionals & Tests
What you'll learn How to branch your script with if, elif, and else. How to write tests with [[ ...
Lesson: Loops, Arguments & Functions
What you'll learn How to repeat work with for and while loops. How to read arguments passed to y...
Lesson: Scripts You Can Trust
What you'll learn How set -euo pipefail turns silent failures into loud, safe ones. The quoting ...
Assignment 1: A system health-check script
Goal: Write a Bash script that inspects the machine it runs on — disk usage, free memory, and whe...
Assignment 2: A safe backup/parameterised script
Goal: Write a robust, parameterised Bash script that backs up a directory into a timestamped comp...