Shell and Linux for supervising agents
For engineers
Reading and approving the commands coding agents run: files, processes, permissions, pipes and destructive operations
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
An agent proposes rm -rf "$OUT"/dist. What happens if OUT is unset and the command runs as written?
Check yourself · 2 of 5
Which command is the safest way to force-update a branch you own after rewriting its history?
Check yourself · 3 of 5
In bash, which value holds the process id of the most recent background job you started?
Check yourself · 4 of 5
A file shows the mode -rw-r----- . Who can read it?
Check yourself · 5 of 5
Which pipeline counts how many times each distinct line appears in words.txt?
Topics
- Reading a command before approving it4 min read · Flags, globs, quoting, redirection, chained commands and what an empty variable does to a path
- Destructive and irreversible shell commands4 min read · Recursive deletes, force pushes, recursive permission changes, piping downloads into a shell and killing processes by name on shared machines
- Processes, signals and background jobs4 min read · Process ids and groups, SIGTERM versus SIGKILL, ports, background jobs and stopping only the processes you started
- Files, permissions and environment variables5 min read · Paths, ownership, file modes, PATH, environment variables and .env files that leak into commits or logs
- Text pipelines to verify agent claims4 min read · grep, sort, uniq, awk and jq pipelines over logs and JSON to check what an agent reports
Start here
- The Missing Semester of Your CS Education (MIT) (opens in a new tab)CourseFree
Free lectures on the shell, shell scripting, data wrangling and command-line tools.
- ShellCheck (opens in a new tab)ToolFree
Paste a script or command and see unquoted variables and other classic traps flagged.
- The Linux Command Line (free book) (opens in a new tab)BookFree
A full book on navigation, permissions, processes, pipes and scripting.
110 questions · last verified 2026-12