Here is another tiny rc script https://gist.github.com/2686516 It is an extended version of pstree. (Behaves more like solaris ptree) It takes an option -(p|c), given -p , it prints the parents of the pid. Given -c , it prints the children in a tree form. Would appreciate any feed back. ps: let me know if I am flooding the list.