Display a tree of processes https://douglasthrift.net/dtpstree/
Douglas Thrift 0534ff9ed4 Use https for PSMisc link | před 2 roky | |
---|---|---|
build-aux | před 14 roky | |
man1 | před 13 roky | |
.gitignore | před 14 roky | |
GNUmakefile.in | před 13 roky | |
LICENSE | před 14 roky | |
NOTICE | před 14 roky | |
README.md | před 2 roky | |
autogen.sh | před 13 roky | |
configure | před 13 roky | |
configure.ac | před 13 roky | |
dtpstree.cpp | před 11 roky | |
dtpstree.man | před 14 roky | |
foreach.hpp | před 14 roky | |
makefile.in | před 14 roky |
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.
You can check out the code straight from the Git repository:
git clone https://git.douglasthrift.net/douglas/dtpstree.git
The code is also available on GitHub if you would like to make a pull request there.
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
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
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
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
On Debian GNU/kFreeBSD you can install it apt.douglasthrift.net:
apt-get install dtpstree
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