{"id":429,"date":"2018-10-17T10:41:03","date_gmt":"2018-10-17T10:41:03","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/what-is-the-difference-between-kill-15-vs-kill-9-in-linux\/"},"modified":"2018-10-17T10:41:03","modified_gmt":"2018-10-17T10:41:03","slug":"what-is-the-difference-between-kill-15-vs-kill-9-in-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/what-is-the-difference-between-kill-15-vs-kill-9-in-linux\/","title":{"rendered":"what is the difference between kill -15 vs kill -9 in linux?"},"content":{"rendered":"<p><b><br \/><\/b><\/p>\n<p>\nkill -15 vs kill -9 <\/p>\n<p>\nList of kill signals.<\/p>\n<p>\nkill -l<\/p>\n<p>\n 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP<br \/>\n 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1<br \/>\n11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM<br \/>\n16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP<br \/>\n21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ<br \/>\n26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO 30) SIGPWR<br \/>\n31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1 36) SIGRTMIN+2 37) SIGRTMIN+3<br \/>\n38) SIGRTMIN+4 39) SIGRTMIN+5 40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8<br \/>\n43) SIGRTMIN+9 44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13<br \/>\n48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12<br \/>\n53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9 56) SIGRTMAX-8 57) SIGRTMAX-7<br \/>\n58) SIGRTMAX-6 59) SIGRTMAX-5 60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2<br \/>\n63) SIGRTMAX-1 64) SIGRTMAX\n<\/p>\n<p><b><br \/><\/b><\/p>\n<p>\n<b>SIGKILL (9)<\/b> \u2013 Kill signal. Use SIGKILL as a last resort to kill process. This will not save data or cleaning kill the process.<\/p>\n<p><b><br \/><\/b><\/p>\n<p>\n<b>SIGTERM (15)<\/b> \u2013 Termination signal. This is the default and safest way to kill process.<\/p>\n<p><b><br \/><\/b><\/p>\n<p>\nThe difference between 9 and 15 is, the default action for both of them is to terminate<\/p>\n<p>\n the process, but 9 can&#8217;t be caught or ignored. So if signal 9 gets sent, the process is <\/p>\n<p>\nguaranteed to die, immediately. If a sig 15 is sent, the process can catch it and perform cleanups.<\/p>\n<p><b><br \/><\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p>\nSignal name<\/p>\n<\/td>\n<td>\n<p>\nSignal value<\/p>\n<\/td>\n<td>\n<p>\nEffect<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\nSIGHUP<\/p>\n<\/td>\n<td>\n<p>\n1<\/p>\n<\/td>\n<td>\n<p>\nHangup<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\nSIGINT<\/p>\n<\/td>\n<td>\n<p>\n2<\/p>\n<\/td>\n<td>\n<p>\nInterrupt from keyboard<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\nSIGKILL<\/p>\n<\/td>\n<td>\n<p>\n9<\/p>\n<\/td>\n<td>\n<p>\nKill signal<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\nSIGTERM<\/p>\n<\/td>\n<td>\n<p>\n15<\/p>\n<\/td>\n<td>\n<p>\nTermination signal<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\nSIGSTOP<\/p>\n<\/td>\n<td>\n<p>\n17,19,23<\/p>\n<\/td>\n<td>\n<p>\nStop the process<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> <a href=\"https:\/\/www.linuxforfreshers.com\/2018\/10\/what-is-difference-between-kill-15-vs.html\" target=\"_blank\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>kill -15 vs kill -9 List of kill signals. kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN 22) SIGTTOU &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/what-is-the-difference-between-kill-15-vs-kill-9-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;what is the difference between kill -15 vs kill -9 in linux?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-429","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=429"}],"version-history":[{"count":0,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/429\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}