MODULE 6 - Shell Scripting
Overview
This module teaches you how to automate tasks with the Bash shell. You will learn about variables, control structures, functions, and especially task scheduling with cron and systemd timers.
Learning Objectives
By the end of this module, you will be able to:
- Write basic and advanced Bash scripts
- Use variables and parameters
- Implement control structures (if, for, while)
- Create reusable functions
- Schedule tasks with cron and crontab
- Use systemd timers as a modern alternative
Estimated Duration
Theory: 5-6 hours
Practice: 4-5 hours
Total: 9-11 hours
Key Concepts
Bash Scripting
- Variables and parameters
- Control structures
- Functions
- Error handling
Task Scheduling
- Cron: Syntax, crontab, /etc/cron.d
- systemd timers: Modern alternative to cron
- Anacron: For non-24/7 systems
Module created on: December 2024