LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-13-2011, 02:53 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
kill (but not Bill)


Yesterday, I wanted to talk to someone on Skype. Skype was running, had been for two days that I hadn't switched off. The girl I wanted to talk to said, over another chat, I wasn't online with Skype. I told Skype to quit, I thought, if I restart it, things will be fine. But it wouldn't quit, just sat there. I opened System tools>System monitor, opened processes and told it to kill Skype. No joy. I opened a terminal and as root said: kill 22926 (which was it's id). Nothing.

I had to reboot to stop Skype. Could I have stopped Skype any other way??
 
Old 07-13-2011, 03:01 AM   #2
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Perhaps kill -9 <pid> can help next time...
 
Old 07-13-2011, 03:02 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Code:
kill -KILL 22926
killall -KILL skype

Last edited by H_TeXMeX_H; 07-13-2011 at 03:04 AM. Reason: buggy posting
 
Old 07-13-2011, 03:09 AM   #4
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by H_TeXMeX_H View Post
Code:
kill -KILL 22926
killall -KILL skype
Hmm... Now I have a question. Is it KILL or SIGKILL? Or is it the same?

Code:
$ 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	23) SIGURG	24) SIGXCPU	25) SIGXFSZ
26) SIGVTALRM	27) SIGPROF	28) SIGWINCH	29) SIGIO	30) SIGPWR
31) SIGSYS	34) SIGRTMIN	35) SIGRTMIN+1	36) SIGRTMIN+2	37) SIGRTMIN+3
38) SIGRTMIN+4	39) SIGRTMIN+5	40) SIGRTMIN+6	41) SIGRTMIN+7	42) SIGRTMIN+8
43) SIGRTMIN+9	44) SIGRTMIN+10	45) SIGRTMIN+11	46) SIGRTMIN+12	47) SIGRTMIN+13
48) SIGRTMIN+14	49) SIGRTMIN+15	50) SIGRTMAX-14	51) SIGRTMAX-13	52) SIGRTMAX-12
53) SIGRTMAX-11	54) SIGRTMAX-10	55) SIGRTMAX-9	56) SIGRTMAX-8	57) SIGRTMAX-7
58) SIGRTMAX-6	59) SIGRTMAX-5	60) SIGRTMAX-4	61) SIGRTMAX-3	62) SIGRTMAX-2
63) SIGRTMAX-1	64) SIGRTMAX
 
Old 07-13-2011, 03:11 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I think -KILL is equivalent to -9, but I don't remember -9 as easily.
 
Old 07-13-2011, 03:33 AM   #6
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by H_TeXMeX_H View Post
I think -KILL is equivalent to -9, but I don't remember -9 as easily.
True. Words are easier to remember. Anyway, I've been killing a shell script repeatedly, and it seems -KILL, -SIGKILL and -9 are equivalent. In all cases the shell prints "Killed".
 
Old 07-13-2011, 07:18 AM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Without the "-9" or "-KILL" option, it just sends a signal to the process that tells it to quit. But if it's really hung up, it could ignore that. But with the "-9" option, it directly tells the kernel to stop running the process, and it's impossible for the misbehaving process to stop it.
 
1 members found this post helpful.
Old 07-13-2011, 08:36 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
@H_TeXMeX_H: try this -9 = 9mm (as in handgun ... then you'll remember it )
 
Old 06-23-2012, 07:59 AM   #9
dulanjan007
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
SIGPWR help

check this page out guys

---------- Post added 06-23-12 at 07:59 AM ----------

http://dulanjan007.blogspot.com/2012...ce-i-came.html
 
Old 06-23-2012, 11:05 AM   #10
arifur
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Rep: Reputation: Disabled
Quote:
ps aux | grep <program name>
Example:
This will find the program and provide you the PID
Quote:
ps aux | grep firefox
Then just kill the PID
kill -9 <PID>

Quote:

kill -9 3486
Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Who'll kill who? Who's stronger? Bill Gates or Linus Torvalds? jeffh83 General 11 11-16-2007 12:45 AM
Cannot install slax kill bill edition KAnurag Linux - Software 1 09-04-2007 08:35 AM
Knoppix 3.2 vs Kill Bill WhatDoIdo Linux - Newbie 3 01-05-2007 03:57 AM
Linux Hacking Challenge based on Kill Bill! ddonzal Linux - News 0 07-10-2006 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration