按端口,PID,名称或路径划分的目标过程。
Proc是用于macOS,Linux和Windows上进程管理的语义CLI工具。 找到港口上的东西,它为什么在那里,并停止它,在一个命令中,你会猜测在第一次尝试。
~proc杀死 3: 00 ~
立即结束3000端口的监听(SIGKILLL). 先问,再问 --干运行预览。
领先的结肠是指一个端口:proc对它所听到的任何东西都行动。
酿造安装 yazeed/ proc/ proc
一个命令而不是一个管道
同样的工作,不记得哪些旗子需要或管道PID杀。
-i:30 -P -nproc on 3:00lsof -i:30:00,然后 ps -o pid=上连锁店为什么3:00lsof -t -i:30:00 Xargs杀死了QQ睡眠 1 -i:300proc自由 3:00while ps aux QX grep node-|-v grep;做睡眠5;doproc等节点杀 -STOP $(pgrep node)proc冻结 nodeproc孤儿 - in.
十九个指挥,三个工作
每个命令都采用相同的目标,几乎所有的都接受 -- 留在一个项目内,-- json 用于脚本,和 -- 干跑在任何改变之前。
找出来
唯相读取。 无所触取。
换一下
先问,或预览为 -- dry-run.
继续看
活观等相。
为脚本制作并编码 agents
每个命令都打印一个JSON文档,上面写着-json,退出代码总是意味着同样的事情。 agent可以读取Proc的方式,不用解析表格。
- 0 成功,1 出错,2 未找到,3 个权限被拒绝,4 个输入无效
-干燥运行的显示会触摸到什么,没有别的了
- agent技能教Claude Code,Codex,Cursor,Gemini CLI等何时到达 proc
Proc on: 8080 - json QQ jq'. process {pid, cwd, uptime secs}}" 互联网档案馆的存檔,存档日期2013-12-02.
{
"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 Gem Box. All rights belong to the original author.