pstree
Erscheinungsbild
	
	
pstree - Prozesse in Baumansicht anzeigen
Beschreibung
- Prozessbaum (pstree)
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
Aufruf
pstree     [-a] [-c] [-h|-Hpid] [-l] [-n] [-p] [-u] [-G|-U] [pid|user]
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