DELAPARRA
Index
Color
NL
Category: CLI commands

kill

Explained by Updated

What is kill?

kill: Kill — Send a signal to a process, usually to terminate it. kill sends a signal to a process, identified by its process ID. Despite the name, the default signal, SIGTERM, politely asks the process to stop, giving it time to clean up. kill -9, which sends SIGKILL, ends the process immediately. It cannot be caught or ignored, so the process has no chance to finish writing files or close connections. Use it only when a normal kill does not work.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about kill

What should you keep in mind with kill?

Find the process ID with ps aux | grep name or pgrep name; pkill name kills by name directly. Other signals are useful too. SIGHUP makes many servers reload their configuration without stopping. In containers and Kubernetes, SIGTERM is what your application receives on shutdown, so handling it gracefully avoids lost requests during deploys.

At a glance

CategoryCLI commands
Explained by
Updated

More CLI commands terms

All terms starting with K

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.