LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-26-2003, 01:07 PM   #1
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Rep: Reputation: 15
how to kill stuff?


I have a gentoo window that has hanged...
and I don't know how to kill it... how do you?
 
Old 05-26-2003, 01:10 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
use the kill command.

man kill for options.

PS. this is asked all the time, a search will find lots on this topic.

Last edited by trickykid; 05-26-2003 at 01:12 PM.
 
Old 05-26-2003, 01:11 PM   #3
Korff
Member
 
Registered: May 2003
Location: Central Florida
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
You can kill everything and reload X with control+alt+backspace. Depending on your distro, if the whole computer isn't frozen (probably isn't - Linux is very stable) you can probably get to Windows-style task manager window

Here's how I do it with RH9:

Hat->System Tools->System monitor->hanging program->end process
 
Old 05-26-2003, 01:13 PM   #4
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
could you plz specify??? I'm really new to this, and I can't seem to find the process id...
 
Old 05-26-2003, 01:14 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by Korff
You can kill everything and reload X with control+alt+backspace.
As he stated it's only one window that is hanging, just basically find the pid of the program that is hung and kill it with the kill -9 command.. no need to restart X as the could have other programs running.
 
Old 05-26-2003, 01:15 PM   #6
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
how do I find the pid then???
 
Old 05-26-2003, 01:16 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by ziggamon
could you plz specify??? I'm really new to this, and I can't seem to find the process id...
Bring up a terminal or console and type ps -aux. Find the pid number and then issue the command:

kill -9 <pid of program>
 
Old 05-26-2003, 01:16 PM   #8
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Use top or a fancy line with ps piped to grep
 
Old 05-26-2003, 01:25 PM   #9
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
well, I've done all that now...
and killed off some stuff, so my system runs ok again...
thanks so far...

but the ******* gentoo window won't just leave!!!
what to do?
I've exited gentoo, but the window i still there...
 
Old 05-26-2003, 01:32 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Run xkill.

If you don't have it installed, try this:

Find the process id:

ps -ef | grep -i gentoo

kill <pid>

Last edited by fancypiper; 05-26-2003 at 01:35 PM.
 
Old 05-26-2003, 02:28 PM   #11
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
thanks a lot!

xkill is a wonderful application, just the one I was looking for...

but the other tips were good too, and I hope I'm not the only one here that has learned something!

//Z
 
Old 05-26-2003, 02:31 PM   #12
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Just dont use xkill on an app's taskbar entry, you'll kill the taskbar
 
Old 05-26-2003, 03:35 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Quote:
Originally posted by Proud
Just dont use xkill on an app's taskbar entry, you'll kill the taskbar
Oh, and you have done that?
 
Old 05-26-2003, 04:20 PM   #14
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Yeah, but it's nothing that logging out and back in wont fix
Probably could have started the klipper from the Run... desktop menu option, but as you can see I was still rather new
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What if 'kill -9' fails to kill a task? chii-chan Linux - Newbie 15 03-27-2013 03:47 PM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 06:35 PM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 04:37 PM
kill X = kill computer! jd243 Slackware 3 07-01-2003 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:34 AM.

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