Display a tree of processes https://douglasthrift.net/dtpstree/

Douglas Thrift 8a344264e9 Add README.md 8 vuotta sitten
build-aux c88a13b7a6 Check for kvm functions and work correctly from a different directory. 14 vuotta sitten
man1 cc87fa6413 Add documentation for the unimplemented show parents feature for #3. 13 vuotta sitten
.gitignore 24347e8859 GNU make with other make trick! 14 vuotta sitten
GNUmakefile.in 9191b16e5b PS: 12 vuotta sitten
LICENSE d33ffed5fb Apache license and change around options. 14 vuotta sitten
NOTICE d33ffed5fb Apache license and change around options. 14 vuotta sitten
README.md 8a344264e9 Add README.md 8 vuotta sitten
autogen.sh b6f07bd08e Oh, that's where the check_gnu_make thingy went. 13 vuotta sitten
configure 9191b16e5b PS: 12 vuotta sitten
configure.ac 9191b16e5b PS: 12 vuotta sitten
dtpstree.cpp 8ea21ea3da Fix build with clang 11 vuotta sitten
dtpstree.man e9e9033331 Mention DragonFly BSD and add bug reporting information. 14 vuotta sitten
foreach.hpp d33ffed5fb Apache license and change around options. 14 vuotta sitten
makefile.in 24347e8859 GNU make with other make trick! 14 vuotta sitten

README.md

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

FreeBSD

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

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

Or you can use pkg instead:

pkg install dtpstree

pkgsrc (NetBSD)

On NetBSD or other systems using pkgsrc, you can install it from the port sysutils/dtpstree:

cd /usr/pkgsrc/sysutils/dtpstree
make
make install

Or, if there is a binary package, you can use pkg_add instead:

pkg_add dtpstree

OpenBSD

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

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

Or you can use pkg_add instead:

pkg_add dtpstree

DragonFly BSD

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

cd /usr/dports/sysutils/dtpstree
make
make install

Or you can use pkg instead:

pkg install dtpstree

Debian GNU/kFreeBSD

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

apt-get 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