Linux: SIGTERM vs SIGKILL 🤓

Ever whisper “time to go” to a runaway process, then slam the door when it ignores you?

Linux gives you SIGTERM (15) for the polite chat and SIGKILL (9) for the mob hit. When you send SIGTERM, the app gets a chance to save logs, flush buffers, or write one last goodbye message before exiting, just like the 2014 Stack Overflow note that it “determines what it wants to do”. If it ignores you, SIGKILL calls the kernel’s bouncer: no cleanup, no excuses, instantly gone.

Choosing wisely avoids corrupted data and midnight pager rage. System tools even shutdown, try SIGTERM, wait, then escalate to SIGKILL, proving grace before force is best practice.

Why care? A graceful shutdown keeps data intact, frees up ports, and leaves logs readable. Blindly -9’ing can corrupt files and anger your future self.