Identify only the running job you created A process is a running program instance. Its PID is an operating-system identifier; a jobspec belongs to one shell. Compare jobs -l before and after creating your harmless wait. The example %1 is usable only if that new job is currently job 1. Otherwise use its current identifier, or let the wait complete naturally. Never paste this sheet as a script. The timeline is a prediction, not a running job. Run in one Bash terminal in owned guest; sleep is harmless waiting. sleep 60 & jobs -l Identify only that sleep job; use its current jobspec, e.g. %1 if it is actually job 1. Example numbers are not a real target. kill %1 wait %1 jobs -l kill normally requests termination, not deletion of a stored file. wait may return a nonzero termination status; jobs may already be empty. If sleep finished naturally, do not reuse a stale PID or jobspec. Fallback timeline: created sleep job -> listed -> terminated or completed. Question fixed row: PID 731, command sleep; file suffix .txt is separate. Which identifies this running instance for PID-directed kill? PID/extension