proc

A semantic process manager. Commands that read like sentences.
proc on :3000 proc kill :3000 proc ps node proc stop node
Install
brew install yazeed/proc/proc cargo install proc-cli
Script:
curl -fsSL https://raw.githubusercontent.com/yazeed/proc/main/install.sh | bash
Manual:
curl -fsSL https://github.com/yazeed/proc/releases/latest/download/proc-darwin-aarch64 -o proc
chmod +x proc && sudo mv proc /usr/local/bin/
curl -fsSL https://github.com/yazeed/proc/releases/latest/download/proc-darwin-x86_64 -o proc
chmod +x proc && sudo mv proc /usr/local/bin/
curl -fsSL https://github.com/yazeed/proc/releases/latest/download/proc-linux-x86_64 -o proc
chmod +x proc && sudo mv proc /usr/local/bin/
curl -fsSL https://github.com/yazeed/proc/releases/latest/download/proc-linux-aarch64 -o proc
chmod +x proc && sudo mv proc /usr/local/bin/
Invoke-WebRequest -Uri https://github.com/yazeed/proc/releases/latest/download/proc-windows-x86_64.exe -OutFile proc.exe
Move-Item proc.exe C:\Windows\System32\proc.exe
Usage
Targets
Every command accepts the same target syntax:
| Target |
Example |
Meaning |
:port |
:3000 |
Process using port 3000 |
PID |
12345 |
Process with ID 12345 |
name |
node |
All processes named "node" |
Discovery
proc on :3000 proc on 12345 proc on node
proc ports proc ps proc ps node proc ps --in . proc ps --path /usr proc ps --min-cpu 10
proc info :3000 proc tree proc tree --min-cpu 5
proc stuck
Lifecycle
proc kill :3000 proc kill node proc stop :3000 proc stop node
proc unstick proc unstick --force
Reference
Commands
| Command |
Alias |
Description |
on |
: |
Bidirectional port/process lookup |
ports |
p |
List listening ports |
ps |
l |
List processes |
info |
i |
Detailed process info |
tree |
t |
Process hierarchy |
kill |
k |
Force kill (SIGKILL) |
stop |
s |
Graceful stop (SIGTERM) |
stuck |
x |
Find hung processes |
unstick |
u |
Recover stuck processes |
Options
| Option |
Short |
Description |
--json |
-j |
JSON output |
--verbose |
-v |
Show paths, cwd, full commands |
--yes |
-y |
Skip confirmation |
--dry-run |
|
Preview without executing |
--force |
-f |
Force action |
Filters
| Option |
ps |
tree |
Description |
--in <path> |
✓ |
|
Filter by working directory |
--path <path> |
✓ |
|
Filter by executable path |
--min-cpu <n> |
✓ |
✓ |
Processes using >n% CPU |
--min-mem <n> |
✓ |
✓ |
Processes using >n MB memory |
--status <s> |
✓ |
✓ |
running, sleeping, stopped, zombie |
Examples
$ proc on :3000
✓ Port 3000 is used by:
Process: node (PID 12345)
Path: /usr/local/bin/node
Listening: TCP on 0.0.0.0
Resources: 2.3% CPU, 156.4 MB
Uptime: 2h 34m
$ proc ps --in /my/project
✓ Found 3 processes
PID NAME CPU% MEM (MB) STATUS
──────────────────────────────────────────────
12345 node 2.3 156.4 Running
12346 npm 0.1 45.2 Sleeping
$ proc tree --min-cpu 5
✓ 2 processes matching filters:
├── ● node [12345] 12.3% 256.4MB
└── ● python [12400] 8.1% 128.2MB
$ proc kill :3000
Kill node [PID 12345]? [y/N]: y
✓ Killed 1 process
$ proc ps node --json | jq '.processes[].pid'
12345
12346
Platform Support
| Platform |
Status |
| macOS (Apple Silicon) |
✅ |
| macOS (Intel) |
✅ |
| Linux (x86_64) |
✅ |
| Linux (ARM64) |
✅ |
| Windows (x86_64) |
✅ |
Building
git clone https://github.com/yazeed/proc
cd proc
cargo build --release
./target/release/proc --help
Contributing
See CONTRIBUTING.md.
License
MIT