Cover by Ron Peters

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

CHAPTER 8Shell Process Tree

The process-tree script presented in this chapter does exactly what its name suggests: it prints out the names of some or all of the currently running processes that are present in the process table, displaying the parent/child relationships that exist among them in the form of a visual tree. There is an implementation of this functionality on some versions of Solaris (ptree) and on all flavors of Linux (pstree). These have proved very valuable to me for finding the root of a process group quickly, especially when that part of the process tree needs to be shut down.

There are some UNIX-based operating systems that don't have this functionality, such as HP-UX; hence the reason for this script. Along the way, this script ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required