TOPIC 15/1816 MINNOT STARTED

The terminal for testers: move around, read logs, search and pipe

Use the command line with confidence: find where you are, list files, read a log, search for an error, follow a log live, and send output between commands.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a library desk, not a picture map. You ask which aisle you are in. You read the shelf label. You walk to another aisle. You search one book for a word. You watch a notice board as new notes are pinned. You hand a stack of notes from one clerk to the next.

The aisles are folders. The search is a log search. The hand-off is a pipe. The notice board is a live log.

Tom, a tester at Daily List, a to-do list app, uses this desk when a save fails. Mei, the test lead, wants the exact error lines. Leo, a developer, cannot fix the bug from the words "it broke".

What it is: The terminal is a text window on the computer where you type commands. The shell is the program that reads those commands. On Linux that program is often bash. means finding the folder you are in and moving to another. means opening a log and finding the failure lines. A pipe and redirect joins commands, or saves their text into a file. This is not the same as a file window with icons. The icon window is the nearest neighbour, and it hides the exact command you ran.

Why it matters: When a test fails on a server, the proof is often only in a log. If Tom cannot find the folder, search for ERROR and save a short extract, he cannot show Leo the fault. Lily, who uses Daily List, is left with a save that never sticks.

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB A library with a trolley, a notice board and clerks passing a stack.

  1. Go
  2. Follow
  3. Search
Library

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
Asking where you are in the buildingpwd
Listing a shelfls
Following the notice boardtail -f
Passing a stack to another clerkA pipe

WHERE THIS PICTURE STOPS

  • A library is quiet, but a log scrolls fast.
  • A stack is passed once, but a pipe streams.
  • A notice stays, but a log may rotate.

HOOK

Where, list, follow, pass.

TELL A FRIEND

A library: where, list, follow, pass.

OFTEN MIXED UP WITH How the web works, for testers. That topic explains how the web works. This one reads a server log from the terminal.

Sources & standards — 3 sources
  1. Market practice

    GNU Bash Reference Manual ↗ — GNU · Bash 5.2 publisher tagged source — Selected Pipelines, Redirections, Environment, Shell Scripts, special parameters, errexit, pipefail, ENV/BASH_ENV and kill.

    Selected Pipelines, Redirections, Environment, Shell Scripts, special parameters, errexit, pipefail, ENV/BASH_ENV and kill. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Bash 5.2 publisher tagged source. This is not live service testing or a full-publication certification.

  2. Market practice

    GNU Coreutils manual ↗ — GNU · Coreutils 9.7 — Selected exit status, tail descriptor/name behavior, wc newline counts, uniq adjacency and chmod invocation.

    Selected exit status, tail descriptor/name behavior, wc newline counts, uniq adjacency and chmod invocation. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Coreutils 9.7. This is not live service testing or a full-publication certification.

  3. Market practice

    GNU grep publisher manual source ↗ — GNU · Unversioned publisher source read 7 November 2026; VERSION placeholder is not a certified edition — Selected introduction, matching control, -n, -F and exit status: 0 match, 1 no match, 2 error, with -q exception.

    Selected introduction, matching control, -n, -F and exit status: 0 match, 1 no match, 2 error, with -q exception. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Unversioned publisher source read 7 November 2026; VERSION placeholder is not a certified edition. This is not live service testing or a full-publication certification.

PRACTISE AND KEEP

Sources for this topic — 3 sources
  1. Market practice

    GNU Bash Reference Manual ↗ — GNU · Bash 5.2 publisher tagged source — Selected Pipelines, Redirections, Environment, Shell Scripts, special parameters, errexit, pipefail, ENV/BASH_ENV and kill.

    Selected Pipelines, Redirections, Environment, Shell Scripts, special parameters, errexit, pipefail, ENV/BASH_ENV and kill. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Bash 5.2 publisher tagged source. This is not live service testing or a full-publication certification.

  2. Market practice

    GNU Coreutils manual ↗ — GNU · Coreutils 9.7 — Selected exit status, tail descriptor/name behavior, wc newline counts, uniq adjacency and chmod invocation.

    Selected exit status, tail descriptor/name behavior, wc newline counts, uniq adjacency and chmod invocation. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Coreutils 9.7. This is not live service testing or a full-publication certification.

  3. Market practice

    GNU grep publisher manual source ↗ — GNU · Unversioned publisher source read 7 November 2026; VERSION placeholder is not a certified edition — Selected introduction, matching control, -n, -F and exit status: 0 match, 1 no match, 2 error, with -q exception.

    Selected introduction, matching control, -n, -F and exit status: 0 match, 1 no match, 2 error, with -q exception. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Unversioned publisher source read 7 November 2026; VERSION placeholder is not a certified edition. This is not live service testing or a full-publication certification.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.