Commands.app

kill

System Info

Terminate processes by PID

Options & Flags
Available options for this command
-9

Force kill (SIGKILL)

-15

Graceful termination (SIGTERM, default)

-l

List all signal names

Examples
Common usage examples

Gracefully terminate process with PID 1234

kill 1234

Force kill process with PID 1234

kill -9 1234

Kill all processes named nginx

killall nginx
Notes
  • Use ps or top to find process IDs
  • Always try graceful kill before force kill
  • killall kills processes by name
Related Commands
You might also find these useful