Unix ops lab

Shell scripting

Script reading, safe guards, text helpers, logging, and review habits.

Track progress 0/360 lessons 0/17 missions 12 courses
0%
Continue View profile
01 Shell scripting Script shebang review

Read a script header and metadata before execution.

Advanced 8 minutes · head, stat
02 Shell scripting Script-style output

Use printf to create predictable script output.

Advanced 8 minutes · printf, tee
03 Shell scripting Test guards

Use test commands as script-style guards.

Advanced 8 minutes · test, echo
04 Shell scripting Basename in scripts

Use basename to report script inputs.

Advanced 8 minutes · basename, printf
05 Shell scripting Dirname in scripts

Use dirname to reason about script paths.

Advanced 8 minutes · dirname, pwd
06 Shell scripting Sed config preview

Preview config text replacement as a script step.

Advanced 8 minutes · sed, grep
07 Shell scripting Awk reports

Build a small report from fields.

Advanced 8 minutes · awk, tee
08 Shell scripting Cut in scripts

Extract account fields for script-style checks.

Advanced 8 minutes · cut, tee
09 Shell scripting Normalize text

Normalize labels before comparing output.

Advanced 8 minutes · tr, printf
10 Shell scripting Tee script logs

Capture command output as a script log.

Advanced Checkpoint 8 minutes · tee, cat
11 Shell scripting Xargs review

Use xargs for safe argument shaping.

Advanced 8 minutes · xargs, printf
12 Shell scripting Script execution mode

Set executable bits only after review.

Advanced 8 minutes · cat, chmod, stat
13 Shell scripting Script diff review

Compare config snapshots as a script review habit.

Advanced 8 minutes · diff, grep
14 Shell scripting Script checksum review

Hash scripts and compare notes before trusting them.

Advanced 8 minutes · sha256sum, cat
15 Shell scripting Shell scripting checkpoint

Complete a mini script-review workflow.

Capstone Checkpoint 8 minutes · test, printf, tee, chmod
16 Shell scripting Shebang reading

Inspect script interpreter declarations before execution.

Admin 8 minutes · head, grep, stat
17 Shell scripting Set eu review

Recognize strict-mode style script guards.

Admin 8 minutes · grep, cat, sha256sum
18 Shell scripting Script guard checks

Check required files before script-style work.

Admin 8 minutes · test, stat, printf
19 Shell scripting Script log capture

Capture script-style output into a log file.

Admin 8 minutes · printf, tee, cat
20 Shell scripting Path helper script review

Use basename and dirname as script building blocks.

Admin 8 minutes · basename, dirname, printf
21 Shell scripting Config diff script

Review config drift with diff and grep.

Admin 8 minutes · diff, grep, tee
22 Shell scripting Argument shape review

Use xargs only for safe argument shaping.

Advanced 8 minutes · printf, xargs, history
23 Shell scripting Executable bit review

Set executable mode only after reading a script.

Advanced 8 minutes · cat, chmod, stat
24 Shell scripting Checksum before run

Hash scripts and read notes before trusting them.

Advanced 8 minutes · sha256sum, cat, grep
25 Shell scripting Shell expanded checkpoint

Complete a script review from guards to logs.

Capstone Checkpoint 8 minutes · test, grep, tee, stat
26 Shell scripting Script input guard

Use test checks to prove required files and directories exist.

Admin 8 minutes · test, stat
27 Shell scripting Quoted argument review

Preserve a multi-word value while capturing predictable output.

Admin 8 minutes · printf, tee, cat
28 Shell scripting Predictable output contract

Create machine-readable status lines and verify their shape.

Admin 8 minutes · printf, tee, grep
29 Shell scripting Script path resolution

Resolve script paths and report their directory and basename.

Admin 8 minutes · realpath, basename, dirname
30 Shell scripting Script change review

Compare configuration snapshots and record a review marker.

Advanced Checkpoint 8 minutes · diff, grep, tee
31 Shell scripting Shell workflow bridge

Checkpoint guards, path handling, output contracts, and change review.

Capstone Checkpoint 8 minutes · test, realpath, tee, sha256sum
Command coverage

Commands you will practice here.

pwd

Print the current working directory.

echo <text>

Print text or write lab notes with >.

printf <text>

Print formatted training text.

cat <file>

Print text file contents.

head|tail [-n N] <file>

Read the beginning or end of a file.

grep [-i] <text> <file>

Find literal text inside a file.

awk '{print $N}' <file>

Print a whitespace-delimited field.

sed s/old/new/ <file>

Preview simple text substitutions.

cut -d <char> -f <n>

Extract delimited fields from text.

tr a-z A-Z

Transform piped text case.

tee <file>

Write piped text to a lab file and keep it on screen.

xargs echo|basename

Turn piped words into safe command arguments.

diff <left> <right>

Compare two lab text files.

sha256sum <file>

Print a deterministic training checksum.

realpath <path>

Resolve a path to its canonical simulated location.

basename|dirname <path>

Split paths into file and directory parts.

test -e|-f|-d <path>

Check path type in a training-friendly way.

chmod <mode> <path>

Change a simulated numeric permission mode.

stat <path>

Show lab file details.

history

Show recent commands.