Process Manager

Monitor and manage system processes

gebruder a42326e 899 B Updated

File contents

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

gebruder/wirken/tree/main/skills/process-manager commit a42326e633

Frequently asked questions

npx skillmds@latest add gebruder/process-manager