$ ps axf -o pid,ppid,pgrp,cmd PID PPID PGRP CMD ... 29307 4061 29307 \_ /usr/bin/perl ./661639.pl 29309 29307 29307 \_ sh -c cat /dev/urandom > testfile 29310 29309 29307 \_ cat /dev/urandom