about: |
Processes and resource usage: list processes, top consumers, send signals,
and inspect open files. Prefer read-only inspection before killing tasks.
commands:
mem:
about: Memory summary (`free -h` on Linux; `vm_stat` on macOS).
os: [linux]
exec:
argv: ["free", "-h"]
mem-mac:
about: macOS memory pressure (vm_stat).
os: [macos]
exec:
argv: ["vm_stat"]
ps:
about: Process list — forwarded args (`aux`, `-ef`, `-u`, …).
exec:
argv: ["ps"]
passthrough: true
top-mem:
about: Top ~20 processes sorted by resident memory (Linux ps).
os: [linux]
exec:
argv: ["sh", "-c", "ps aux --sort=-%mem | head -n 20"]
top-cpu:
about: Top ~20 processes sorted by CPU time (Linux ps).
os: [linux]
exec:
argv: ["sh", "-c", "ps aux --sort=-%cpu | head -n 20"]
top:
about: Live process view (top) — forwarded args.
exec:
argv: ["top"]
passthrough: true
htop:
about: Interactive process viewer (htop) — requires install.
exec:
argv: ["htop"]
passthrough: true
kill:
about: Send signal to PIDs (`kill`) — forwarded args.
exec:
argv: ["kill"]
passthrough: true
pkill:
about: Match processes by name and signal (`pkill`) — forwarded.
exec:
argv: ["pkill"]
passthrough: true
pgrep:
about: List PIDs matching a pattern (`pgrep`) — forwarded.
exec:
argv: ["pgrep"]
passthrough: true
lsof:
about: Open files per process (`lsof`) — forwarded paths and PIDs.
exec:
argv: ["lsof"]
passthrough: true
pidof:
about: PID of a running program by name (`pidof`).
exec:
argv: ["pidof"]
passthrough: true