Online Linux Terminal Logo
OnlineLinuxTerminal
System & ProcessesCLI Reference

$kill

Send termination or control signals to processes by PID.

Syntax DefinitionPOSIX standard
kill [OPTIONS] PID...
Linux Community2.4k Online

Chat with real Linux users, learn new commands & get free cheat sheet PDFs.

Try `kill` Live in Interactive Sandbox

Zero-install client simulation with real-time feedback.

Open in Fullscreen Workspace↗
bash — terminal

Overview & How kill Works

`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.

Common Flags & Command Options

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.

Practical Real-World Examples

Example #1Gracefully terminate process with PID 1024
kill 1024

Sends SIGTERM to allow graceful shutdown.

Example #2Force kill an unresponsive process
kill -9 1024

Immediately stops the process at the kernel level.

Frequently Asked Questions

Why should kill -9 be your last resort?

SIGKILL does not give the application time to save open files, close database connections, or remove temporary lockfiles.