← Languages
B

Bash

Full course · 21 lessons

GNU replacement for the Bourne shell

Knowledge Course
01

Getting Started with Bash

Shebang, echo, variables, comments, and your first script.

45 min→
02

Variables and Scoping

local vs global scope, quoting, export, and special parameters.

45 min→
03

Control Flow

if/elif/else, case, and the test commands [ ], [[ ]], ( ( ) ).

45 min→
04

Loops

for, while, until, break, continue, and brace expansion.

45 min→
05

Functions

Defining functions, arguments, return values, and reusable helpers.

45 min→
06

String Manipulation

Length, substring, pattern removal, replacement, and defaults.

60 min→
07

Arrays and Associative Arrays

Indexed arrays, associative arrays, slicing, and safe copying.

60 min→
08

Files, Pipes, and Redirection

Pipelines, stdout/stderr redirection, here-docs, and process substitution.

60 min→
09

Globbing and Regular Expressions

Glob patterns, extended globs, grep, sed, and awk fundamentals.

60 min→
10

Text Processing Toolkit

sort, uniq, cut, wc, head, tail, xargs, join, paste, tr.

60 min→
11

Error Handling

set -euo pipefail, trap, robust patterns, and exit codes.

60 min→
12

Process Management

Background jobs, wait, kill, pgrep, and job control.

60 min→
13

Command-Line Argument Parsing

Positional params, getopts, shift, and flag loops.

60 min→
14

Environment and Configuration

Env vars, exports, dotfiles, sourcing, and shell modes.

60 min→
15

Advanced I/O and Redirection

File descriptors, /dev/null, safe file reads, and named pipes.

75 min→
16

JSON and Data Parsing

jq for JSON: queries, transforms, building, and validation.

75 min→
17

Concurrency and Parallelism

xargs -P, parallel, background fan-out, subshells, and coprocesses.

75 min→
18

Production Scripting Patterns

Library scripts, dry-run, logging, and idempotency.

75 min→
19

Performance

Builtins over forks, timing, profiling, and caching.

75 min→
20

Security

Quoting against injection, shellcheck, secrets, and privilege checks.

75 min→
21

Advanced Bash: Regex, Substitution, and Completion

BASH_REMATCH, process substitution tricks, completions, and checklists.

75 min→