Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man1/ptree.1
Real path: /usr/share/man/man1/ptree.1
Zurück
'\" te .\" Copyright (c) 2005, 2022, Oracle and/or its affiliates. .TH ptree 1 "29 Nov 2022" "Oracle Solaris 11.4" "User Commands" .SH NAME ptree \- print process trees .SH SYNOPSIS .LP .nf \fB/usr/bin/ptree\fR [\fB-a\fR] [\fB-c\fR] [\fB-z\fR \fIzone\fR] [\fIpid\fR | \fIuser\fR]... .fi .SH DESCRIPTION .sp .LP The \fBptree\fR utility prints the process trees containing the specified \fIpid\fRs or \fIuser\fRs, 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. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-a\fR\fR .ad .RS 11n .rt All. Print all processes, including system processes. .RE .sp .ne 2 .mk .na \fB\fB-c\fR\fR .ad .RS 11n .rt Contracts. Print process contract memberships in addition to parent-child relationships. See \fBprocess\fR(5). This option implies the \fB-a\fR option. .RE .sp .ne 2 .mk .na \fB\fB-z\fR \fIzone\fR\fR .ad .RS 11n .rt Zones. Print only processes in the specified \fIzone\fR. Each zone \fBID\fR can be specified as either a zone name or a numerical zone \fBID\fR. .sp This option is only useful when executed in the global zone. .RE .sp .ne 2 .mk .na \fB\fB-?\fR\fR .ad .br .na \fB\fB--help\fR\fR .ad .RS 11n .rt Print usage message and immediately exit. .RE .SH OPERANDS .sp .LP The following operands are supported: .sp .ne 2 .mk .na \fB\fIpid\fR\fR .ad .RS 8n .rt Process-id or a list of process-ids. \fBptree\fR also accepts \fB/proc/\fR\fInnn\fR as a process-id, so the shell expansion \fB/proc/*\fR can be used to specify all processes in the system. .RE .sp .ne 2 .mk .na \fB\fIuser\fR\fR .ad .RS 8n .rt Username or list of usernames. Processes whose effective user IDs match those given are displayed. .RE .SH EXAMPLES .LP \fBExample 1\fR Using \fBptree\fR .sp .LP The following example prints the process tree (including children of process 0) for processes which match the command name \fBssh\fR: .sp .in +2 .nf $ \fBptree -a 'pgrep ssh'\fR 1 /usr/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 .fi .in -2 .sp .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 12n .rt Successful operation. .RE .sp .ne 2 .mk .na \fBnon-zero\fR .ad .RS 12n .rt An error has occurred. .RE .SH FILES .sp .ne 2 .mk .na \fB\fB/proc/*\fR\fR .ad .RS 11n .rt process files .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability system/core-os _ Interface Stability See below. .TE .sp .sp .LP The human readable output is Uncommitted The options are Committed. .SH SEE ALSO .sp .LP \fBgcore\fR(1), \fBldd\fR(1), \fBpargs\fR(1), \fBpgrep\fR(1), \fBpkill\fR(1), \fBplimit\fR(1), \fBpmap\fR(1), \fBppgsz\fR(1), \fBpreap\fR(1), \fBproc\fR(1), \fBps\fR(1), \fBpwd\fR(1), \fBtime\fR(1), \fBtruss\fR(1), \fBwait\fR(1), \fBfcntl\fR(2), \fBfstat\fR(2), \fBsetuid\fR(2), \fBdlopen\fR(3C), \fBsignal.h\fR(3HEAD), \fBcore\fR(5), \fBproc\fR(5), \fBprocess\fR(5), \fBattributes\fR(7), \fBzones\fR(7), \fBprstat\fR(8) .SH HISTORY .sp .LP Support for the \fB-?\fR and \fB--help\fR options was added in Oracle Solaris 11.4.42. .sp .LP Support for printing SMF service names, when applicable, as part of the contract output from the \fB-c\fR option, was added in Oracle Solaris 11.4.12. .sp .LP Support for the \fB-c\fR and \fB-z\fR options was added in Solaris 10 3/05. .sp .LP The \fBptree\fR command, including support for the \fB-a\fR option, was introduced in Solaris 2.5.