pstree
brew install pstree
v2.40
GPL-3.0-only
Show ps output as a tree
577
30-day installs · #1654
2.0k
90-day · #1606
8.3k
365-day · #1552
50
★ GitHub stars · updated 4y ago
Links
- https://github.com/FredHucht/pstree
- GitHub: FredHucht/pstree
- Brew formula source: Formula/p/pstree.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Show ps output as a tree",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:35+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "pstree",
"github_default_branch": "main",
"github_last_commit_at": "2022-08-18T08:45:31Z",
"github_readme_excerpt": "# pstree\n## Introduction\n`pstree` is a small program that shows the process listing (`ps`) as a tree (as the name implies...). It has several options to make selection criteria and to change the output style.\n\nIt should compile under most Un*xes, tested are AIX, Linux, HP-UX, A/UX, SunOS, Solaris, (Free|Open|Net)BSD, MacOSX/Darwin/macOS, and many others.\n\nUnder AIX \u0026 Linux, pstree directly reads the process table using `getproc()`/`getuser()` or the `/proc` file system. Under all other Un*xes, `pstree` reads the output of `/bin/ps`.\n\n## Compilation\n\nTake an ANSI C compiler, e.g., `gcc`, and just enter\n\n $ [g]cc -O -o pstree pstree.c\n\nAlternatively, enter `make`.\n\n## Installation\n\nPut the binary `pstree` into appropriate bindir, e.g., `/usr/local/bin`.\n\nOptionally, put the manpage `pstree.1` to, e.g., `/usr/local/share/man/man1`.\n\n## Changes\n\nFor changes up to v2.40, see end of `pstree.c`.\n \n## Usage\n\n~~~\n$ ./pstree -?\npstree $Revision: 2.40 $ by Fred Hucht (C) 1992-2022\nEMail: fred AT thp.uni-due.de\n\nUsage: pstree [-f file] [-g n] [-l n] [-u user] [-U] [-s string] [-p pid] [-w] [pid ...]\n -f file read input from \u003cfile\u003e (- is stdin) instead of running\n \"ps -eo uid,pid,ppid,pgid,args\"\n -g n use graphics chars for tree. n=1: IBM-850, n=2: VT100, n=3: UTF-8\n -l n print tree to n level deep\n -u user show only branches containing processes of \u003cuser\u003e\n -U don\u0027t show branches containing only root processes\n -s string show only branches containing process with \u003cstring\u003e in commandline\n -p pid show only branches containing process \u003cpid\u003e\n -w wide output, not truncated to window width\n pid ... process ids to start from, default is 1 (probably init)\n\nProcess group leaders are marked with \u0027=\u0027.\n~~~\n\n## History\n\n`pstree` started as a shell script back in the 90s, the first C version is from 1992. Since 1994, the source was managed using RCS. Since 2022, it lives here on GitHub.\n\n`pstree` was formerly available under ",
"github_repo": "FredHucht/pstree",
"github_stars": 50,
"github_topics": [],
"homepage": "https://github.com/FredHucht/pstree",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 577,
"installs_365d": 8260,
"installs_90d": 1979,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "GPL-3.0-only",
"llm_generated_at": null,
"llm_model": null,
"name": "pstree",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 1654,
"rank_365d": 1552,
"rank_90d": 1606,
"raw_hash": "70a7333c44a5574c",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/p/pstree.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "2.40",
"versioned_formulae": [],
"why_use_this": null
}