Scripting Master with Bash, PowerShell and Python
Programming

Course Description


This intensive 3-day course equips IT professionals, sysadmins, and developers with advanced scripting skills in Bash, PowerShell, and Python. Participants will learn to automate routine tasks, manage systems efficiently, and write robust, reusable scripts that work across Unix/Linux and Windows environments. The course covers fundamental concepts, scripting best practices, and integrates real-world use cases to master automation workflows.


Duration: 3 Days

Format: Instructor-led, hands-on scripting labs, real-world automation projects, and cross-platform scripting techniques

man holding tablet computer
man holding tablet computer

Description

Course Outline


? Day 1: Mastering Bash Scripting for Linux/Unix

Session 1: Bash Essentials and Environment


  • Bash shell overview and setup
  • Variables, data types, and quoting
  • Script execution and permissions


Session 2: Control Flow and Functions


  • Conditionals (if, case) and loops (for, while)
  • Functions and modular scripting
  • Command-line arguments and input/output handling


Session 3: File and Process Management


  • File operations and text processing (grep, awk, sed)
  • Process management and job control
  • Scheduling scripts with cron


Lab Activities:


  • Write scripts to automate file backups and log rotation
  • Create modular functions with input parameters
  • Schedule automated tasks using cron jobs


? Day 2: PowerShell Scripting for Windows Automation

Session 1: PowerShell Basics and Cmdlets


  • PowerShell console and scripting environment
  • Variables, objects, and pipeline
  • Common cmdlets for file and system management


Session 2: Control Structures and Functions


  • Conditional statements and loops
  • Defining and using functions and scripts
  • Working with modules and importing commands


Session 3: System Administration and Automation


  • Managing files, registry, and services
  • Remote scripting with PowerShell Remoting
  • Task scheduling and event logging


Lab Activities:


  • Develop scripts to automate user and group management
  • Use PowerShell to query and manipulate system info
  • Automate scheduled tasks and generate event reports


? Day 3: Python Scripting for Cross-Platform Automation

Session 1: Python Scripting Fundamentals


  • Python environment setup and syntax basics
  • Data types, control flow, and functions
  • File I/O and exception handling


Session 2: System Interaction and Libraries


  • Using os, sys, and subprocess modules
  • Parsing command-line arguments with argparse
  • Working with JSON, CSV, and text files


Session 3: Automation Projects and Integration


  • Automating system tasks across platforms
  • Combining Python with Bash and PowerShell scripts
  • Writing reusable, modular Python scripts


Lab Activities:


  • Build a Python script for file system cleanup and report generation
  • Automate network and process monitoring tasks
  • Integrate Python scripts with existing Bash or PowerShell workflows