Training path

Shell Scripting

Turn the commands you type into scripts you can keep: variables, arguments, tests, loops, functions and exit codes, written and run on a real Linux machine.

Your lab machineLive

Ubuntu 24.04 with sudo (root) access, next to every lesson.

learner@linux-server:~$ chmod +x ~/scripts/hello.sh

learner@linux-server:~$ ~/scripts/greet.sh Ada

learner@linux-server:~$ shellcheck ~/scripts/backup.sh

What you'll learn

Every lesson writes and runs real scripts on a Linux machine of your own. You start with a two-line hello script and end with a snapshot tool that archives a folder, keeps a log of every run and fails honestly when something is wrong — with shellcheck keeping your scripts clean along the way.

Core skills

  • ✓Shebangs, chmod +x and running scripts by path
  • ✓Variables, quoting and command substitution
  • ✓Arguments with $1, $# and read
  • ✓Decisions with if, [ ], && and ||
  • ✓for and while loops

Advanced topics

  • ✓Functions, arguments and local variables
  • ✓set -euo pipefail and exit codes that mean something
  • ✓Errors on stderr and usage messages
  • ✓shellcheck as a habit

Course modules

  1. 01

    Your first script

    Save your commands in a file, make it executable, and run it like a command.

    30 min
  2. 02

    Variables and quoting

    Store values, quote them properly, capture command output, and take arguments.

    45 min
  3. 03

    Making decisions

    if and [ ] tests, else and elif, && and ||, and exit codes that mean something.

    45 min
  4. 04

    Loops

    for and while loops, counting, reading files line by line, and break and continue.

    45 min
  5. 05

    Functions

    Break a script into named pieces: define functions, pass them arguments, and keep variables local.

    45 min
  6. 06

    Robust scripts

    set -euo pipefail, errors on stderr, honest exit codes, and shellcheck to catch bugs.

    45 min
  7. 07

    Capstone: a snapshot tool

    Put it all together: a snapshot tool that archives a folder and logs every run.

    45 min

Prerequisites

Linux command-line basics (our Linux course covers them). No scripting experience needed.

What's included

  • •7 hands-on chapters
  • •shellcheck installed, to keep your scripts honest
  • •A Linux machine of your own for every lesson, nothing to install
  • •Tasks checked on your machine with "Check my work"

Who it's for

  • •Anyone who has typed the same commands twice
  • •Developers and junior admins automating their setup
  • •Learners whose scripts need to survive contact with reality

By the end, you'll be able to

  • •Write and run scripts with a shebang and chmod +x
  • •Handle arguments, quoting and command output safely
  • •Test conditions and loop over lists and files
  • •Break scripts into functions that stay readable
  • •Fail loudly and honestly: stderr, exit codes and a shellcheck-clean script

Course format

  • •Self-paced online learning
  • •Lifetime access to course materials
  • •Regular content updates
  • •Community forum access

Support

  • •Email support from instructors
  • •Q&A sessions (monthly)
  • •Peer community support
  • •Course completion certificate

Course investment

Contact for pricing

Flexible payment options available

Ready to script?

Open your machine and turn your first commands into a script you can keep.