Online Linux Terminal Logo
OnlineLinuxTerminal
Système et processusCLI Manual

$kill

Send termination or control signals to processes by PID.

Syntaxe de la commandePOSIX Standard
kill [OPTIONS] PID...
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

`kill` transmits POSIX signals to running processes. Despite its name, `kill` is a signal dispatcher. By default, it sends `SIGTERM` (15), which politely asks a process to clean up resources and exit. If a program is completely frozen, `SIGKILL` (9) forcefully terminates it immediately.

Options et drapeaux courants

Flag / OptionDescription
-9, -KILLSend SIGKILL to forcefully terminate a process immediately (cannot be caught or ignored).
-15, -TERMSend SIGTERM to request graceful termination (default signal).
-lList all available signal names and numbers.

Exemples pratiques du monde réel

#1Gracefully terminate process with PID 1024

Sends SIGTERM to allow graceful shutdown.

#2Force kill an unresponsive process

Immediately stops the process at the kernel level.