macOS
brew install pstreelocal Homebrew formula metadata
sudo port install pstreeMacPorts ports tree · sysutils/pstree/Portfile · source: api.github.com
brew / rank 1588
Show ps output as a tree. Version 2.40 via Homebrew; verified 2026-09-18. Also installable with nix: nix profile install nixpkgs#pstree.
install
brew install pstreelocal Homebrew formula metadata
sudo port install pstreeMacPorts ports tree · sysutils/pstree/Portfile · source: api.github.com
sudo apk add pstreeAlpine Linux edge package indexes · pstree · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#pstreenixpkgs package indexes · pkgs/by-name/ps/pstree/package.nix · source: api.github.com
overview
Show ps output as a tree
history
Fred Hucht's pstree is a portable Unix command that renders the process hierarchy as a tree and supports filtering by user, process ID, command text, and depth.
Fred Hucht's pstree began as a shell script in the early 1990s. The first C version dates to 1992, and the source was managed in RCS from 1994. It was formerly distributed from the University of Duisburg-Essen through FTP and a project webpage; in 2022 the project moved to GitHub.
The implementation was designed for portability across Unix systems. Its official README lists AIX, Linux, HP-UX, A/UX, SunOS, Solaris, BSD variants, and macOS among tested systems. The supplied metadata records current packaging in Homebrew, Alpine Linux, MacPorts, and Nix.
pstree normally obtains process information from ps and displays parent-child relationships from PID 1 or selected process IDs. On Linux it can read /proc directly. Options filter branches by user, PID, or command text, limit depth, choose line-drawing characters, and request wide output.
This pstree is a compact example of a durable Unix utility migrating through successive distribution eras: shell script, portable C program, RCS-managed source, FTP and university-hosted releases, package-manager distribution, and finally GitHub. It remains useful because parent-child process relationships are often easier to diagnose as a tree than as a flat ps listing.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pstree | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/FredHucht/pstree
install metadata
| Package key | brew:pstree |
|---|---|
| Version | 2.40 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pstree |
| Homepage | https://github.com/FredHucht/pstree |
| Repository | https://github.com/FredHucht/pstree |
| License | GPL-3.0-only |
| Source archive | https://github.com/FredHucht/pstree/archive/refs/tags/v2.40.tar.gz |
| Last updated | 2026-09-18T09:17:53+02:00 |
| Pulse | updated |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pstree |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
pstree
nix profile install nixpkgs#pstreepstree 2.40-r2
A small tool to list processes as a tree
https://github.com/FredHucht/pstree
sudo apk add pstreepstree-doc 2.40-r2
A small tool to list processes as a tree (documentation)
https://github.com/FredHucht/pstree
sudo apk add pstree-docpstree
sudo port install pstreesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.