kill: Kill — Send a signal to a process, usually to terminate it. kill sends a signal to a process, identified by its process ID. Despite the name, the default signal, SIGTERM, politely asks the process to stop, giving it time to clean up. kill -9, which sends SIGKILL, ends the process immediately. It cannot be caught or ignored, so the process has no chance to finish writing files or close connections. Use it only when a normal kill does not work.
Find the process ID with ps aux | grep name or pgrep name; pkill name kills by name directly. Other signals are useful too. SIGHUP makes many servers reload their configuration without stopping. In containers and Kubernetes, SIGTERM is what your application receives on shutdown, so handling it gracefully avoids lost requests during deploys.
Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.
Use this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to "clean up", "clear the cache", "start fresh", "wipe everything", "nuke it", "reset", "force remove", or "tear down" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — `docker rm`,