GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PSTREE(1) FreeBSD General Commands Manual PSTREE(1)

pstreelist processes as a tree

pstree [-Uw] [-f file] [-g n] [-l n] [-p pid] [-s string] [-u user] [rootpid ...]

Tree sorted output frontend for ps(1). pstree uses the output of the ps(1) program to show nicely formatted process family trees.

For each rootpid argument, pstree shows one tree rooted at that process. By default, if no rootpid argument is given, it shows a single tree rooted at process 1.

The options are as follows:

file
Read input from file instead of running “ps -kaxwwo user,pid,ppid,pgid,command”. If file is a single dash (‘-’), pstree reads from standard input.
n
Use graphics chars for tree. n = 1: IBM-850, n = 2: VT100, n = 3: UTF8.
n
Show a maximum of n levels.
pid
Show only parents and descendants of the process pid.
string
Show only parents and descendants of processes containing the string in their commandline.
Do not show branches containing only root processes.
user
Show only parents and descendants of processes of user.
Wide output, not truncated to terminal width.

The width of the terminal in characters. This can be set with stty(1) columns number.

The pstree utility exits 0 on success, and >0 if an error occurs.

Show branches of processes containing “httpd” using VT100 graphic chars:

$ pstree -g 2 -s httpd

Show process number “15495” and its descendants:

$ pstree 15495

Show process number “15495” and its parents and descendants:

$ pstree -p 15495

ps(1), top(1)

The program was written and is maintained by Fred Hucht <fred@thp.uni-due.de>, and this manual page was initially set up by
Sebastian Stark.

June 4, 2013 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.