Make an enquiry

    Linux Shell Scripting (GL375)

    The GL375 is designed to provide the skills necessary to automate tasks on a Unix or Linux system.

    Course Overview

    The GL375 is designed to provide the skills necessary to automate tasks on a Unix or Linux system. Systems Administrators and Developers alike can avoid errors, save time and money by replacing repetitive work patterns with shell scripts.

    Care has been taken to present the GL375 in a format that benefits all students, with or without previous programming experience. Guru Labs believes that the best way to learn shell scripting is writing shell scripts.

    For this reason, lab time is emphasised. Early labs present the scripting process step by step, while later labs are presented in a challenge format.

    While official solutions to each lab task are provided, students are encouraged to create their own before examining the solution. In this way, more experienced students are challenged without overwhelming the less experienced.

    • Duration: 2 days
      Price: £595 (exc VAT)

    Further Information

    • Course Modules
      • Introduction to the shell
      • Shell scripting basics
      • Working with files
      • Regular expressions
      • Branching and looping
      • Data munging
      • Security, whitespace, and other gotchas
      • Challenge
      • Emacs
      • The secure shell (SSH).
    • Course Objectives
    • By the end of the course, participants should be able to:

      • Write and execute Bash shell scripts using shebangs, comments, and proper file permissions
      • Use positional parameters, special variables, and the read command to handle script input
      • Manage shell and environment variables, quoting rules, and command substitution
      • Redirect STDIN, STDOUT, and STDERR using file redirection, pipes, here documents, and tee
      • Construct basic and extended regular expressions for pattern matching with grep and sed
      • Implement conditional logic using test, if/elif/else, and case statements
      • Build iterative scripts using for, while, until, and select loops with getopts option parsing
      • Process and transform structured text data using awk, cut, sort, and uniq
      • Define reusable Bash functions with local variable scope and POSIX-compatible syntax
      • Schedule automated tasks with cron, crontab, and anacron
      • Apply defensive scripting techniques including set -euo, signal trapping, and proper variable quoting
      • Diagnose common scripting pitfalls involving whitespace, IFS, locales, and alias interference.
    • Prerequisites
    • Solid understanding of Unix-based systems and proficiency on the Unix or Linux command line.

    Get in touch