# Process Manager

> Monitor and manage system processes

- Skill: `gebruder/process-manager` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gebruder/process-manager`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gebruder/process-manager/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gebruder (https://skillmd.com/u/gebruder)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/gebruder/process-manager

---


# Process Manager

Monitor and manage system processes.

## List processes

- All: `ps aux`
- By CPU: `ps aux --sort=-%cpu | head -15`
- By memory: `ps aux --sort=-%mem | head -15`
- By name: `pgrep -af "<name>"`
- Tree: `pstree -p | head -40`

## Manage processes

- Kill by PID: `kill <pid>`
- Force kill: `kill -9 <pid>`
- Kill by name: `pkill <name>`
- Kill by port: `fuser -k <port>/tcp`

## Monitor

- Find by port: `ss -tlnp | grep <port>`
- Open files: `lsof -p <pid> | head -20`
- File descriptors: `ls /proc/<pid>/fd | wc -l`
- Watch in real-time: `top -bn1 | head -20`

## Services (systemd)

- Status: `systemctl status <service>`
- Start/stop: `systemctl start|stop|restart <service>`
- Logs: `journalctl -u <service> --no-pager -n 30`
- List running: `systemctl list-units --type=service --state=running`

