wutt_g
Last Updated: February 25, 2016
·
592
· sheerun
Photo on 08.01.2013 at 04.15

List all process' PPIDs

Function:

ppids(){ echo $1; ppid=$(ps -o ppid= $1) && ppids ${ppid// /} || true; }

Usage:

ppids $$ | xargs ps # current process
ppids 42 | xargs ps # other process
Say Thanks
Respond
Filed Under

Awesome Job

73e4bca6 7d15 11e7 9be9 be2b6a600c3a
Sr. Site Reliability Engineer
·
Emeryville, CA & San Francisco, CA
·
Full Time