按端口,PID,名称或路径划分的目标进程。
proc是用于macOS,Linux和Windows上的流程管理的语义CLI工具。 找到港口上的东西,它为什么在那里,并停止它,在一个命令中,你会猜测在第一次尝试。
~proc杀死 3: 00 ~
立即结束3000号端口的监听(SIGKILLL). 先问,然后 -- 干运行预览。
一个领先的结肠是指一个端口:proc对它所听到的任何内容都行动。
酿造安装 yazeed/ proc/ proc
一个命令而不是一个管道
相同的工作,不记得哪些旗子Isof需要或管道PID 杀。
i 3: 00 - P - nproc on 3: 00lsof -i 3:00,然后 ps -o pid= up the chainproc why 3: 00lsof -t -i: 3:00 Xargs kill QQ-i: 3:000proc free 3:00 while ps aux | g grep node |-v grep; do sleep 5;doproc wait nodekill -STOP $(pgrep node) proc 冻结 nodeproc 孤儿 - in.
19个指挥,3个工作
每个命令都采用相同的目标,几乎所有的都接受 -- 留在一个项目内,-- json 用于脚本,和 -- 干运行在任何改变之前。
找出来
唯读。 无所触动。
换一下
先询问,或预览使用 -- dry-run.
继续看
生观等。
为脚本制作并编码 agents
每个命令都打印一个JSON文档带有-json,退出代码总是意思一样。 agent可以读取Proc的方式,不用解析表格。
- 0 成功,1 个错误,2 个未找到,3 个权限被拒绝,4 个输入无效
- 干燥运行的显示会触摸到什么,没有别的了
- agent技能教导Claude Code,Codex,Cursor,Gemini CLI等何时到达Proc
Proc 在:8080 -- -- json QQ jq '. process {pid, cwd, uptime secs} 上输入
{
"pid":177 (英语).
"cwd":"/home/dev/code/shop" (中文(简体) ).
"上时秒": 35
}
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
Target processes by port, PID, name or path.
proc is a semantic CLI tool for process management on macOS, Linux and Windows. Find what's on a port, why it's there, and stop it, in one command you'd guess on the first try.
~proc kill :3000
Ends whatever is listening on port 3000 immediately (SIGKILL). Asks first, and --dry-run previews.
A leading colon means a port: proc acts on whatever is listening on it.
brew install yazeed/proc/proc
One command instead of a pipeline
The same jobs, without remembering which flags lsof needs or piping PIDs into kill.
lsof -i :3000 -P -nproc on :3000lsof -i :3000, then ps -o ppid= up the chainproc why :3000lsof -t -i:3000 | xargs kill && sleep 1 && lsof -i:3000proc free :3000while ps aux | grep node | grep -v grep; do sleep 5; doneproc wait nodekill -STOP $(pgrep node)proc freeze nodeproc orphans --in .
Nineteen commands, three jobs
Every command takes the same targets, and almost all take --in to stay inside one project, --json for scripts, and --dry-run before anything changes.
Find out
Read-only. Nothing is touched.
Change it
Asks first, or previews with --dry-run.
Keep watching
Live views and waiting.
Made for scripts and coding agents
Every command prints one JSON document with --json, and exit codes always mean the same thing. An agent can read proc the way you do, without parsing tables.
- 0 success, 1 error, 2 not found, 3 permission denied, 4 invalid input
- --dry-run shows what would be touched, and nothing else
- The agent skill teaches Claude Code, Codex, Cursor, Gemini CLI and others when to reach for proc
❯ proc on :8080 --json | jq '.process | {pid, cwd, uptime_secs}'
{
"pid": 177,
"cwd": "/home/dev/code/shop",
"uptime_secs": 35
}
Auto-fetched and translated by AI Atlas. All rights belong to the original author.