Belajar Sendiri

Commands

kill

kill [-9] <PID>

Risk: Careful

What it does

Sends a signal to a process: TERM (please stop) by default, KILL with -9.

When to use it

A program is stuck. Try the polite way first.

Example

$ kill 1241

Ask process 1241 to stop.

$ kill -9 1241

Last resort: stop it at once, no tidying up.

$ pkill -f oven-timer

Stop by name instead of number.