Technical foundations
The terminal and web skills, practiced on your own computer, that the labs and the Credentials and keys lessons rely on. Skip it only if you are reading for the concepts alone.
Start with Setting up your terminal
Working in a terminal
Opening a terminal, moving around files, connecting commands, and writing a small script.
- Setting up your terminalChoose the browser workspace or your own computer, run your first command, install only the tools your route needs, and verify their versions and locations.
- Terminals and shellsLearn what a terminal and a shell do, how to read a prompt, how the shell splits a line into a command and its arguments, and what an exit status reports.
- Finding your way around files and directoriesLearn how files and directories form a tree, how to find where you are, how to move around with absolute and relative paths, and how to match names with wildcards.
- Reading and changing filesRead files whole or in part, create, copy, move and delete them safely, tell what a file contains regardless of its name, join commands with ;, && and ||, and run a file of commands.
- Connecting commands with pipes and redirectionLearn how standard input, output and error work, redirect them to and from files, write files with here-documents, join commands into pipelines, and read a pipeline's exit status.
- Variables, quoting and the environmentStore values in shell variables, quote them so spaces survive, capture command output, give missing values a default, pass settings to child processes, load settings files with source, and read secrets without showing them.
- Searching and shaping textFind lines with grep and regular expressions, cut out columns, sort and count them, change text with tr and sed, build pipelines one stage at a time, and loop over words and lines when each one needs a decision.
- Writing a small scriptTurn a file of commands into a runnable script with arguments, exit codes, case and functions, stop pasted blocks safely, and use set -euo pipefail and a scratch folder that cleans up after itself.
How the web works
How names become addresses, what an HTTP request looks like, sending requests and reading JSON, encoding and hashing, timestamps, HTTPS, what browsers add, and cross-site scripting.
- How names become addresses: DNSLearn how DNS turns names into IPv4 and IPv6 addresses, how resolvers and caches find and keep answers, which record types matter, and how to look names up with dig.
- Connections, ports and speaking HTTP by handSee how an address and a port reach a service, open TCP connections, and type HTTP requests yourself with nc and openssl to read exactly what a server sends back.
- Sending requests with curlRead every part of a URL, then build curl commands that choose a method, add headers, send JSON bodies and credentials, show the whole exchange, read status codes, fail clearly in scripts and probe redirects.
- Reading JSON from APIs with jqRead the JSON that APIs send back: its kinds of value, pretty printing with jq, picking out and filtering values, and passing shell values in safely.
- Encoding and hashingHow text becomes bytes, how hex, base64, base64url and percent-encoding write those bytes, how SHA-256 turns any input into a fixed-size digest, and what a digest does and does not prove.
- Time and timestampsRead Unix time, time zone names and ISO 8601, convert between them with GNU and BSD date, do arithmetic on timestamps, and see why clock skew and unit mistakes break expiry checks.
- HTTPS and certificates in practiceSee what TLS adds to HTTP, watch a handshake with curl, read a server certificate and its chain with openssl, and understand the checks that make verification fail.
- What browsers add: same-origin, CORS and cookiesLearn what an origin is, what the same-origin policy blocks, how CORS and preflight requests relax it, how cookie attributes, prefixes and third-party cookie rules work, which headers tighten the browser, and how to see all of it with browser developer tools and curl.
- Cross-site scripting and where tokens liveSee how cross-site scripting puts someone else's code inside a page, what that code can reach, how each place a browser application keeps tokens changes the damage, and how pages keep scripts out.
Building your identity lab toolkit
Collect the functions you wrote in Technical foundations into one tested file that every terminal loads, see why it is sourced and why eval needs trusted text, then install the lab toolkit and compare it with your own functions.