Compare

kill vs pkill

How to choose between signaling a known PID and matching processes by name or pattern.

`kill` targets processes by PID. `pkill` targets processes by name or pattern, which is often faster interactively but easier to aim too broadly if you are careless.

Use kill When

You know the exact PID and want precise targeting.

You want explicit control over which process receives the signal.

Use pkill When

You want to signal processes by name or pattern during ad hoc troubleshooting.

You are handling several related processes that share a clear identifier.

Rule of Thumb

kill is precise by PID. pkill is faster by pattern.

Want the short version? Browse the compact sheet views and save the commands you use most into a Cheatbook.