360 Secure SkillHub
360 安全技能中心

Kill Tool

该 Skill 提供 kill-tool 命令行工具,按 PID 向运行中的进程发送信号:默认 SIGTERM 优雅终止,也支持 SIGKILL 强制终止、SIGINT 中断、SIGHUP 重载,并可用 -l 列出全部信号名;包含 scripts/kill.py 脚本,依赖 bash 与 python3 运行环境。

dinghaibin
dinghaibin
热度 32.01
最近更新 2026-05-11 17:46:29
分类:自动化依赖:代码执行应用场景:自动化脚本 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add kill-tool
Metadata
name
kill-tool
description
Terminate processes by sending signals. Use for stopping unresponsive programs, managing background tasks, and process lifecycle control.

Kill - Process Signal Utility

Send termination signals to running processes identified by PID. Supports graceful shutdown (SIGTERM) and forceful termination (SIGKILL).

Usage

kill-tool [options] <pid>

Common Signals

  • -15 (SIGTERM): Graceful termination - default
  • -9 (SIGKILL): Force kill - immediate stop
  • -2 (SIGINT): Interrupt - like Ctrl+C
  • -1 (SIGHUP): Hangup - reload config
  • -l: List all available signal names

Examples

# Graceful termination
kill-tool 1234

# Force kill
kill-tool -9 5678

# List all signals
kill-tool -l