YOUR FIRST STEP

Bash:
The Basics

Start with one command. Learn to quote values, manage files, connect streams and make decisions. Build your confidence through small exercises, then create a traceable log-investigation tool.

20 lessons + a capstone About 5 hours No installation
Bash, with a portable subsetRequired solutions work with macOS’s built-in Bash 3.2 and native command options. The browser uses Bash 5.2.37 on Linux. Bash-specific features are identified explicitly; this course does not describe Bash as POSIX sh.

A little further, every lesson.

5 modules · 20 lessons · 1 capstone
01

Getting started

Understand commands, paths, values and quoting.

4 lessons
01Commands, help and exit status13 min 02Paths and navigation13 min 03Variables and environment13 min 04Quoting and command substitution13 min
02

Files and streams

Manage files and connect input, output and pipelines.

4 lessons
05Creating and managing files13 min 06Globbing and filenames13 min 07Input, output and redirection13 min 08Pipelines and pipeline status13 min
03

Working with text

Turn lines and fields into useful summaries.

4 lessons
09Filtering with grep13 min 10Extracting and transforming text13 min 11Sorting, counting and duplicates13 min 12Field-based processing with awk13 min
04

Decisions and repetition

Make decisions, repeat work and accept input.

4 lessons
13Tests and conditionals13 min 14Case statements13 min 15Indexed arrays and for loops13 min 16Interactive input and while/read13 min
05

Reusable scripts

Build, explain and test dependable Bash tools.

4 lessons
17Script arguments and options13 min 18Functions and sourced helpers13 min 19Error handling and cleanup traps13 min 20Testing with portable assertions17 min
PUT IT ALL TOGETHER

Investigate operational logs

Your capstone project · about 45 minutes

Open the capstone