TOPIC 16/1816 MINNOT STARTED

Linux part 2: processes, environment variables and scheduled jobs

See what is running on a test machine, stop a stuck process the polite way, set the variables a test needs, and read a schedule line so scheduled jobs make sense.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a kitchen with cooks, a menu note and a wall timer. Each cook wears a badge number. A note by the door says which menu is on today. A wall timer starts a task at set times. The cook it calls may never have read the note.

The cooks are processes. The note is an . The wall timer is cron.

Tom, a tester at Daily List, a to-do list app, works in this kitchen. Mei, the test lead, schedules a nightly clean-up. Leo, a developer, asks why the test server is stuck.

What it is: Linux is the on many test servers. A is a program that is running, and it has a number. A shell environment variable is a named setting that programs read, such as which site to test. A cron job is a command the system runs on a schedule. These three are slices of the same machine, not three products. The nearest neighbour is the terminal from the previous idea: you type in the terminal, and these commands tell you what is already running.

Why it matters: A stuck test server is a tester problem. So is a suite pointed at the wrong site. So is a nightly job that fails only when cron runs it. Tom needs the process number to free a hung run. He needs the variable so checks hit the test site. He needs the schedule line so he can investigate a cron failure using evidence rather than assume it is a or one missing setting.

PLAIN WORDS · 2 in this section
cron
a tool that runs jobs at set times
flaky
passing sometimes and failing sometimes with no product change

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 kitchen with cooks, a notice of the menu and a wall timer.

  1. Cook
  2. Notice
  3. Timer
Kitchen

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A cook with a badge numberA process
The notice by the doorAn environment variable
The wall timerA cron job
Asking a cook to stopA polite kill

WHERE THIS PICTURE STOPS

  • A cook has a face, but a process has only a number.
  • A kitchen notice may be shared by everyone; exported variables instead pass from a process to its children.
  • A timer rings a cook who has not read the notice.

HOOK

Cooks, notice, timer.

TELL A FRIEND

Cooks, a notice and a timer.

OFTEN MIXED UP WITH The terminal for testers: move around, read logs, search and pipe. That topic moves around files and reads logs. This one handles running programs, settings and scheduled jobs.

Sources & standards — 3 sources
  1. Market practice

    procps-ng ps manual ↗ — procps-ng · 4.0.5 — NAME/DESCRIPTION/selection/options/examples: snapshot and default process selection, not a permanent saved copy.

    NAME/DESCRIPTION/selection/options/examples: snapshot and default process selection, not a permanent saved copy. · Checked 2026-11-07

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

  2. 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.

  3. Market practice

    Cronie crontab file format ↗ — Cronie project · 1.7.2 — DESCRIPTION/environment/schedules/DST, user versus system username field, percent handling and restricted day-field OR; selected NOTES.

    DESCRIPTION/environment/schedules/DST, user versus system username field, percent handling and restricted day-field OR; selected NOTES. · Checked 2026-11-07

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

PRACTISE AND KEEP

Sources for this topic — 3 sources
  1. Market practice

    procps-ng ps manual ↗ — procps-ng · 4.0.5 — NAME/DESCRIPTION/selection/options/examples: snapshot and default process selection, not a permanent saved copy.

    NAME/DESCRIPTION/selection/options/examples: snapshot and default process selection, not a permanent saved copy. · Checked 2026-11-07

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

  2. 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.

  3. Market practice

    Cronie crontab file format ↗ — Cronie project · 1.7.2 — DESCRIPTION/environment/schedules/DST, user versus system username field, percent handling and restricted day-field OR; selected NOTES.

    DESCRIPTION/environment/schedules/DST, user versus system username field, percent handling and restricted day-field OR; selected NOTES. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. 1.7.2. 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.