~/ learn/ comp-325/ cards/ The process hierarchy, and hunting a runaway job
1 of 10

Walk your own lineage upwards

Walk your own lineage upwards

Answer

ps -o pid,ppid,comm -p $$ pstree -p 1 | head -5

$$ is your shell’s PID. Follow the PPID chain and every process on the machine arrives at PID 1.

S&K 3e ch10 §10.7; ch7 for the awk stage

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