Zum Inhalt springen

pstree

Aus Foxwiki

pstree - Prozesse in Baumansicht anzeigen

Beschreibung

Beispiel

pstree
 init-+-actived
      |-atd
      |-cron
      |-gpm
      |-httpd---httpd
      |-in.identd---in.identd---5*[in.identd]
      |-inetd
      |-kflushd
      |-klogd
      |-kpiod
      |-kswapd
      |-kupdate
      |-lockd---rpciod
      |-2*[login---bash---ssh]
      |-login---sh
      |-2*[mingetty]
      |-nscd---nscd---5*[nscd]
      |-portmap
      |-syslogd

Das Beispiel verdeutlicht, dass init der Elternprozess aller Prozesse ist. pstree versucht per Voreinstellung identische Prozesse in der Darstellung zusammen zu fassen, so bedeutet 2*[mingetty], dass 2 Prozesse das Kommando mingetty ausführen.

Mit der Option -c wird diese Zusammenfassung abgeschaltet

 ...
  |-in.identd---in.identd-+-in.identd
     |                       |-in.identd
     |                       |-in.identd
     |                       |-in.identd
     |                       `-in.identd
 ...

Installation

pstree ist Teil des Pakets psmisc

Aufruf

pstree [-a, --arguments] [-c, --compact-not] [-C, --color Attribut] [-g, --show-pgids] [-h, --highlight-all, -H PID, --high‐light-pid PID] [-l, --long] [-n, --numeric-sort] [-N, --ns-sort Namensraum] [-p, --show-pids] [-s, --show-parents] [-S, --ns-changes] [-t, --thread-names] [-T, --hide-threads] [-u, --uid-changes] [-Z, --security-context] [-A, --ascii, -G, --vt100, -U, --unicode] [PID, Benutzer]
pstree -V, --version

Optionen

Unix GNU Parameter Beschreibung
-1 --single Exit as soon as the first advertisement is received (default)

Parameter

Umgebungsvariablen

Exit-Status

Anwendung

Problembehebung

Konfiguration

Dateien

Datei Beschreibung
/proc/sys
/etc/sysctl.conf

Anhang

Siehe auch

Dokumentation

Man-Page
Info-Pages

Links

Projekt
Weblinks