


























Today I discovered a simple but important improvement to using the kill
command that makes process management safer and more readable.
Instead of memorizing and using numeric signal codes, the kill command accepts
human-readable signal names:
| |
| |
-TERM (15): Polite termination request - allows cleanup-KILL (9): Immediate forceful termination - no cleanup possible-QUIT (3): Quit with core dump for debugging-STOP (19): Pause process execution (cannot be caught or ignored)-TSTP (20): Terminal stop signal (Ctrl+Z equivalent)-CONT (18): Resume stopped process execution-HUP (1): Hangup - often used to reload configuration-USR1 (10): User-defined signal 1 - application-specific behavior-USR2 (12): User-defined signal 2 - application-specific behavior | |
| |
Using readable names eliminates the risk of accidentally using the wrong signal number, which could have unintended consequences on system stability.
This simple practice makes process management commands more maintainable and reduces the cognitive load of remembering numeric signal codes.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。