Bash Scripting
Automating everyday command-line work.
💡
This course has 3 lessons. Start with the first one and use the next / previous links at the bottom of each lesson — the sidebar keeps the whole course in order.
Lessons
- Variables, quoting and exit codesAssign and expand values safely, understand word splitting, and read the status a command returns.
- Conditionals and loopsBranch on files, strings and numbers, match patterns with case, and iterate over lines without breaking on spaces.
- Writing a robust scriptStrict mode, traps that clean up after a crash, and argument parsing that fails with a useful message.
More in DevOps & Tooling
Git Linux Docker Kubernetes Nginx CI / CD Ansible
Last refreshed 2026-09-17.