Skip to content
mentoor

Shell and Linux for supervising agents

For engineers

Reading and approving the commands coding agents run: files, processes, permissions, pipes and destructive operations

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

Which command is the safest way to force-update a branch you own after rewriting its history?

Choose one answer

Check yourself · 3 of 5

In bash, which value holds the process id of the most recent background job you started?

Choose one answer

Check yourself · 4 of 5

A file shows the mode -rw-r----- . Who can read it?

Choose one answer

Check yourself · 5 of 5

Which pipeline counts how many times each distinct line appears in words.txt?

Choose one answer

Topics

  1. Reading a command before approving it4 min read · Flags, globs, quoting, redirection, chained commands and what an empty variable does to a path
  2. 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
  3. Processes, signals and background jobs4 min read · Process ids and groups, SIGTERM versus SIGKILL, ports, background jobs and stopping only the processes you started
  4. Files, permissions and environment variables5 min read · Paths, ownership, file modes, PATH, environment variables and .env files that leak into commits or logs
  5. 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

110 questions · last verified 2026-12