pkill

The command that sends a signal to every process whose name matches a pattern, SIGTERM by default.

A loose pattern can signal processes you did not intend to stop.

In more detail

It is convenient and blunt: a loose pattern can match more processes than you meant. Run pgrep with the same pattern first to see who would be hit.

Example

pkill -TERM sleep

Related terms

Taught in

References