Linux – BASH Programming (LNX4)

Unix-like systems, Linux - administration

This course teaches practical shell scripting on Linux with hands-on labs. It focuses on core shell constructs, variables and parameters, and control flow so you can automate routine tasks and streamline system administration.

Through practical labs you'll learn to write robust, maintainable scripts with debugging, error handling, and managing processes and signals. The course also teaches using grep, sed and awk for efficient text processing and log analysis.

THIS TRAINING COURSE WILL HELP YOU:

  • Automate repetitive admin tasks in Linux using BASH scripts
  • Create, structure and debug robust shell scripts
  • Use variables, positional parameters and getopts for input
  • Control flow with conditions and loops
  • Process text and logs with grep, sed and awk

WHO SHOULD ATTEND?

  • System administrators
  • DevOps engineers
  • Tool and script developers
  • IT operators and support staff

COURSE LOCATION AND AVAILABLE DATES



Choose whether to attend in person in our classroom or join online. You can select your preferred format during registration. Learn more about hybrid training.

Unlock your employees' potential. We can adapt every course in our portfolio to your objectives and participants.
Need training at your premises or want to tailor the content and duration? We will prepare the right solution, in Czech or English.

Request customised training

Course content:

Hide details
  • Introduction
    1. Overview of basic UNIX shell constructs
    2. Scripting options and shell types
    3. Metacharacters
    4. Files and file operations
    5. I/O redirection, file descriptors
    6. Processes and process control
    7. Running scripts
    8. Comments
  • Variables
    1. User variables
    2. Environment variables
    3. Variable attributes and export
    4. Positional parameters
    5. Special variables
  • Decision making
    1. Exit codes
    2. test command and its syntax
    3. Conditional execution and if
    4. case command
    5. Special constructs
  • Arithmetic
    1. Calculations with expr, let and bc
  • Loops
    1. while, until, for loops
    2. break and continue
  • Selected built-in commands
    1. Printing output: echo, print, printf
    2. Reading input: read
    3. Parsing arguments: getopts
  • Advanced shell features
    1. Shell options and set
    2. Shell functions, parameter passing, return
    3. Aliases
    4. Working with arrays
    5. Process signaling and trap
    6. How the shell processes command lines, eval
  • Text processing
    1. Working with string variables
    2. Intro to regular expressions and grep
    3. sed
    4. Text processing with awk
Prerequisites:
Basic knowledge of Linux system administration.
Recommended previous course:
Linux – Basic Administration (LNX1)
Recommended follow-up course:
Linux – System and Network Security (LNX5)
Schedule:
3 days (9:00-17:00)
Price per person:
540.00 € ( 653.40 € incl. 21% VAT)

Training and learning environment