wiki:WikiStart

DT PS Tree

dtpstree shows running processes as a tree. It is a reimplementation of pstree from PSmisc for FreeBSD, NetBSD, OpenBSD, DragonFly BSD, and possibly other modern BSD variants. It also works without /proc and will show the full set of processes in a jail even if init is not present.

It is released under the Apache License, Version 2.0.

Download

Sourcedtpstree-1.0.3.tar.bz250.5 kB
Sourcedtpstree-1.0.3.tar.xz46.7 kB

You can check out the code straight from the repository:

git clone git://code.douglasthrift.net/dtpstree.git

The code is also available at GitHub if you would like to fork it there.

FreeBSD

On FreeBSD, you can install it from the port sysutils/dtpstree:

cd /usr/ports/sysutils/dtpstree
make
make install

pkgsrc (NetBSD/DragonFly BSD)

On NetBSD or DragonFly BSD, you can install it from the port sysutils/dtpstree:

cd /usr/pkgsrc/sysutils/dtpstree
bmake
bmake install

On NetBSD you may need to use make instead of bmake.

OpenBSD

On OpenBSD, you can install it from the port sysutils/dtpstree:

cd /usr/ports/sysutils/dtpstree
make
make install

Debian GNU/kFreeBSD

On Debian GNU/kFreeBSD you can install it from apt.douglasthrift.net:

aptitude install dtpstree

Documentation

Usage: dtpstree [options] [PID|USER]

Options:
  -a, --arguments             show command line arguments
  -A, --ascii                 use ASCII line drawing characters
  -c, --no-compact            don't compact identical subtrees
  -h, --help                  show this help message and exit
  -H[PID], --highlight[=PID]  highlight the current process (or PID) and its
                              ancestors
  -G, --vt100                 use VT100 line drawing characters
  -k, --show-kernel           show kernel processes
  -l, --long                  don't truncate long lines
  -n, --numeric-sort          sort output by PID
  -p, --show-pids             show PIDs; implies -c
  -t, --show-titles           show process titles
  -u, --uid-changes           show uid transitions
  -U, --unicode               use Unicode line drawing characters
  -V, --version               show version information and exit
  PID, --pid=PID              show only the tree rooted at the process PID
  USER, --user=USER           show only trees rooted at processes of USER
Last modified 4 years ago Last modified on Jun 26, 2011, 6:23:40 PM