kill

Send a signal to a process. The default signal is TERM (terminate), but it can send any signal, such as KILL (force kill).

Synopsis

kill [options] <pid>...

Core Options

-9

SIGKILL. Forcefully kill the process. Cannot be intercepted.

-15

SIGTERM. Default. Ask the process to terminate gracefully.

-l

List all available signals.

Usage Examples

Terminate Gracefully

Send SIGTERM to process with PID 1234.

kill 1234

Force Kill

Forcefully kill a stuck process (use when it ignores normal kill).

kill -9 1234

Kill Multiple Processes

Kill multiple PIDs at once.

kill 1234 5678
Built for builders.