~/ learn/ comp-325/ cards/ Job control, terminal signals, and surviving logout
1 of 13

Background a job, then look at it two ways

Background a job, then look at it two ways

Answer

sort -o big.sorted big.txt & jobs -l ps -o pid,ppid,stat,comm

The shell prints [jobID] PID when it backgrounds a job. `jobs -l` adds the PID so you can cross-reference the job number against a ps listing.

S&K 3e ch10 §10.6; POSIX.1-2024 signal concepts

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/4b7d4238-3190-4d1c-8add-ee3fe73d3329/flashcard utf-8 LF