kill

kill #

kill -9 与 kill 的区别 #

  • kill 等于 kill -15,是安全的
    • TERM
  • kill -9 是不安全的
    • SIGKILL

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.

参考:


本文访问量

本站总访问量

本站总访客数