$kill
Send termination or control signals to processes by PID.
kill [OPTIONS] PID...Essayer en direct dans le bac à sable interactif
Simulation côté client sans installation avec retour instantané.
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 / Option | Description |
|---|---|
| -9, -KILL | Send SIGKILL to forcefully terminate a process immediately (cannot be caught or ignored). |
| -15, -TERM | Send SIGTERM to request graceful termination (default signal). |
| -l | List all available signal names and numbers. |
Exemples pratiques du monde réel
kill 1024Sends SIGTERM to allow graceful shutdown.
kill -9 1024Immediately stops the process at the kernel level.
Commandes Linux associées
Afficher un instantané des processus en cours d'exécution dans le système.
Display real-time Linux processes and system resource utilization.
Interactive process viewer with colorful CPU meters and mouse support.
Print the effective username associated with the current shell session.
Display or set system date and time.
Print operating system name and kernel architecture.