IPB
>  Man Pages > Unix > Solaris 10 11/06 > Section 1 > ptree man page

ptree man page

Section 1 - Solaris 10 11/06 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!





User Commands                                            ptree(1)



NAME
     ptree - print process trees

SYNOPSIS
     /usr/bin/ptree [-a] [-c] [-z zone] [pid | user] ...

DESCRIPTION
     The ptree utility prints the process  trees  containing  the
     specified  pids or users, with child processes indented from
     their respective parent processes. An argument of all digits
     is taken to be a process-ID, otherwise it is assumed to be a
     user login name. The default is all processes.

OPTIONS
     The following options are supported:

     -a              All. Print all processes, including children
                     of process 0.



     -c              Contracts. Print  process  contract  member-
                     ships  in addition to parent-child relation-
                     ships. See process(4).  This option  implies
                     the -a option.



     -z zone         Zones. Print only processes in the specified
                     zone.  Each  zone  ID  can  be  specified as
                     either a zone name or a numerical zone ID.

                     This option is only useful when executed  in
                     the global zone.



OPERANDS
     The following operands are supported:

     pid             Process-id or a list of  process-ids.  ptree
                     also  accepts  /proc/nnn as a process-id, so
                     the shell expansion /proc/* can be  used  to
                     specify all processes in the system.



     user            Username or  list  of  usernames.  Processes
                     whose  effective  user IDs match those given
                     are displayed.





SunOS 5.10          Last change: 11 Oct 2005                    1






User Commands                                            ptree(1)



EXAMPLES
     Example 1: Using ptree

     The following example prints  the  process  tree  (including
     children of process 0) for processes which match the command
     name ssh:

     $ ptree -a `pgrep ssh`
             1     /sbin/init
               100909 /usr/lib/ssh/sshd
                 569150 /usr/lib/ssh/sshd
                   569157 /usr/lib/ssh/sshd
                     569159 -ksh
                       569171 bash
                         569173 /bin/ksh
                           569193 bash

EXIT STATUS
     The following exit values are returned:

     0               Successful operation.



     non-zero        An error has occurred.



FILES
     /proc/*         process files



ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Availability                | SUNWesu                     |
    |_____________________________|_____________________________|
    | Interface Stability         | See below.                  |
    |_____________________________|_____________________________|


     The human readable  output  is  Unstable.  The  options  are
     Evolving.

SEE ALSO
     gcore(1), ldd(1), pargs(1), pgrep(1),  pkill(1),  plimit(1),
     pmap(1),   preap(1),   proc(1),   ps(1),  ppgsz(1),  pwd(1),



SunOS 5.10          Last change: 11 Oct 2005                    2






User Commands                                            ptree(1)



     rlogin(1), time(1), truss(1), wait(1),  fcntl(2),  fstat(2),
     setuid(2),  dlopen(3C),  signal.h(3HEAD),  core(4), proc(4),
     process(4), attributes(5), zones(5)




















































SunOS 5.10          Last change: 11 Oct 2005                    3





Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 12 11:25:18 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5334 hits)
(openSUSE 10.2)

svn man page (5208 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4870 hits)
(Solaris 10 11_06)

CPAN man page (4607 hits)
(Suse Linux 10.1)

ssh man page (4342 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2874 hits)
(Solaris 10 11_06)

netcat man page (2717 hits)
(Suse Linux 10.1)

pprosetup man page (2487 hits)
(Solaris 10 11_06)

startproc man page (2471 hits)
(Suse Linux 10.1)

signal man page (2406 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Prices and Terms and Conditions :: PIC Micro Development :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum