Sunday, June 5, 2022

[SOLVED] What is the difference between kill and kill -9?

Issue

Can anyone explain the difference between kill and kill -9. Thanks in advance.


id='dv4'>

Solution

kill aka kill -TERM aka kill -15 is the safe and correct way of terminating a process. It's equivalent to safely shutting down a computer.

kill -9 is the unsafe way of brutally murdering a process. It's equivalent to pulling the power cord, and may cause data corruption.

See the Linux&Unix stack exchange for more information.



Answered By - that other guy
Answer Checked By - Candace Johnson (WPSolving Volunteer)