« Hi, I'm Linux | Main | Men Vs Women »

March 05, 2007

ptree (Solaris/Linux/AIX)

Ptree is really useful when digging around trying to sort out process issues on Solaris. Turns out that Linux uses pstree.

I ran into some issues on AIX and I really wanted the equivalent command. Do you know it already exists (but is not referenced anywhere that I could find)?

Check out:


proctree Command
 
Purpose
Prints the process tree containing the specified process IDs or users.
Syntax
proctree [ -a ] [ { ProcessID | User } ]
Description
The /proc filesystem provides a mechanism to control processes. It also
gives access to information about the current state of processes and
threads, but in binary form. The proctools commands provide ascii
reports based on some of the available information.
Most of the commands take a list of process IDs or /proc/ProcessID
strings as input. The shell expansion /proc/* can therefore be used to
specify all processes in the system.
Each of the proctools commands gathers information from /proc for the
specified processes and displays it to the user. The proctools commands
like procrun and procstop start and stop a process using the /proc
interface.

Posted by Ozguru at March 5, 2007 07:00 AM