https://github.com/dastergon/proctree
A tool to display a tree of running processes
https://github.com/dastergon/proctree
darwin golang linux operating-system
Last synced: 6 months ago
JSON representation
A tool to display a tree of running processes
- Host: GitHub
- URL: https://github.com/dastergon/proctree
- Owner: dastergon
- License: mit
- Created: 2018-03-01T19:54:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T14:02:24.000Z (almost 8 years ago)
- Last Synced: 2025-03-30T03:23:11.851Z (10 months ago)
- Topics: darwin, golang, linux, operating-system
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proctree
proctree is a tool to display a tree of running processes. The tree is rooted at either pid or PID 1 if pid argument is omitted.
proctree is influenced by the [pstree](www.thp.uni-duisburg.de/pstree) command line utility.
## Installation
go get -u github.com/dastergon/proctree
## Example
To display a process tree starting from PID 79408:
proctree 79408
The output looks like the following:
```
79408 dastergon (/Applications/iTerm.app/Contents/MacOS/iTerm2)
└── 79412 root (/usr/bin/login)
└── 79413 dastergon (-zsh)
└── 81433 dastergon (vim)
```
## Usage
```
Usage: ./proctree [options...] [] (defaults to PID 1)
-U Do not show branches containing only root processes
-g Show process group ids
-l int
Print tree to n level deep (default -1)
-p int
Show only branches containing process (default -1)
-u string
Show only branches containing process of
-version
Outputs the version of proctree.
```