Chapter Topics

Chapter Topics#

The chapters progress from Linux foundations to Bash programming, reliable automation, and authorized cybersecurity workflows. This table describes the curriculum, including topics whose draft sections are still being developed. Preview, Lab, Homework, and Project activities accompany each chapter.

Chapter

Topics

1. The Terminal and the Shell

Terminals and shells; Unix and Linux history and design; terminal navigation; kernel, shell, and processes; filesystem hierarchy; authorized lab boundaries.

2. Filesystem Management

Absolute and relative paths; path tracing; elementary file operations; previewing batches; metadata and links; hidden configuration files; project organization.

3. Access Control

Users and groups; privileges and sudo; ownership; permission symbols; chmod and chown; umask; default permissions; least privilege and risky access.

4. Files, Streams, and Pipes

The Unix file model; viewing and inspecting data; standard input, output, and error; basic pipes; basic redirection; composing inspection commands.

5. Command Syntax and Quoting

Command structure and arguments; quoting and escaping; introductory variables; word splitting and globbing; safe argument construction; POSIX and Bash; shebangs; creating and executing a script; executable permissions; exit status.

6. Variables, Expansion, and Arrays

Assignment and quoted expansion; shell and environment variables; parameter transformations; value construction and integer-expansion preview; indexed arrays and associative-array extension; PATH and environment security.

7. Operators and Tests

Integer operators and arithmetic commands; numeric and string comparisons; logical operators; file tests; command exit status; short-circuit preflight checks.

8. Control Flow and Script Interfaces

Branching with if and case; list and condition-based loops; break and continue; positional argument validation; getopts and usage errors; interactive input.

9. Functions and Modular Scripts

Function definition and invocation; local and global scope; return status; reusable libraries; modular script organization.

10. Streams and Redirection

Standard streams and file descriptors; redirection order; pipelines and tee; pipeline status; process substitution and its failure boundaries.

11. Text Processing, Regular Expressions, and JSON

grep and regular expressions; find and file discovery; cut, tr, sort, and uniq; sed and awk syntax; combined log-analysis pipelines; JSON with jq (draft).

12. Logs, Reports, and Evidence Files

Log generation and inspection; reports; here-documents and here-strings; evidence files; timestamps; hashes and integrity verification.

13. Error Handling and Defensive Scripting

Exit codes and error propagation; shell options; traps; shopt and subshells; input validation; temporary files and cleanup; dependency checks; defensive scripting; logging and error redirection.

14. Processes and System Monitoring

Process identity and state; signals; foreground and background jobs; disk and memory inspection; top and process snapshots; load and performance interpretation.

15. Services, Packages, and systemd

Package awareness (draft); service state and lifecycle (draft); journal inspection (draft); unit structure and foreground supervision; persistence review (draft).

16. Scheduling and Job Automation

Cron schedules and execution environment; one-time jobs with at; foreground workers and shutdown; overlap prevention; NUL-delimited xargs input; bounded parallel jobs.

17. Networking and Remote Access

Connectivity and HTTP checks; SSH host identity and authentication; remote execution and quoting; secure transfer with scp and rsync; remote monitoring and automation.

18. Backups, Archives, and Recovery

Maintenance; file and database backups; archives; recovery; restore testing; verification of recovered data.

19. Secure Configuration and Audit Automation

Permission audits; account and SSH checks; secrets and integrity checks; secure configuration; repeatable audit reports.

20. Triage and Incident Response Scripts

Authorized host triage; log-review pipelines; indicators and inventory; incident reports; applying the host audit toolkit.

Complete VM onboarding in Appendix H: Tooling before VM-based assignments. Keep the book and terminal tiled side by side. Appendix C provides the detailed POSIX portability reference; Appendix G organizes the host audit toolkit capstone.