LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2005, 10:31 AM   #1
willtell
LQ Newbie
 
Registered: May 2005
Distribution: Ubuntu 7.10
Posts: 12

Rep: Reputation: 0
Question task manager?


I am running suse 9.3 and wonder if there is a way to kill a running program that freezes. Something like windows task manager. I stumbled upon a kill command in the console, but i do not know how to kill a specific program. Thanks for your help.
 
Old 05-25-2005, 10:48 AM   #2
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
use "ps -e | grep <program name>" get the pid, and "kill -9 <pid>".

the thing that's similar to task manager for listing processes is "top", use 'q' to quit it.
 
Old 05-25-2005, 10:52 AM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I would do a few commands to see what is the problem, and then kill it.

Code:
(you@yours)$top
That will list the processes using the most memory and CPU time.

Code:
(you@yours)$ps -ef|grep (name of program you want to kill)
That will give you the numeric PID for the program in question.

Code:
(you@yours)$kill (PID from the last command)
As an example, if my firefox was hanging, I'd do top and see that firefox was eating resources. Then I'd do ps -ef|grep firefox, and I'd get a list of all the processes that had firefox in their name. Then I'd find the PID, which changes each time you use a program. If the main firefox shows a PID of 2254, then my last command would be kill 2254. If you don't have the permissions to kill the program, you may have to sudo or su to issue the kill command.

the htop program streamlines some of that, it is an enhanced top that allows you to kill process directly within it. You can find it at http://htop.sourceforge.net/
Peace,
JimBass
 
Old 05-25-2005, 11:06 AM   #4
gerrit_daniels
Member
 
Registered: Oct 2003
Location: Belgium
Distribution: Kubuntu
Posts: 34

Rep: Reputation: 15
If you are using kde and you prefer a gui app then you can also use ksysguard.

Hope this helps
 
Old 05-25-2005, 12:10 PM   #5
willtell
LQ Newbie
 
Registered: May 2005
Distribution: Ubuntu 7.10
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for all the info! I appreciate it.
 
Old 05-28-2005, 07:09 AM   #6
mohit dhawan
Member
 
Registered: Mar 2005
Posts: 92

Rep: Reputation: 15
see
man top
 
Old 05-28-2005, 07:14 AM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
xkill is what you were looking for.

Edit: and this is more convenient than the TM under Windows.

Last edited by Emerson; 05-28-2005 at 07:17 AM.
 
Old 05-28-2005, 08:15 AM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
killall programname

or if that fails:

killall -9 programname
 
  


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
Is There a Linux Task Manager Equivalent to you know who's? Kevin Tough Linux - Newbie 14 11-21-2012 04:47 PM
Linux equivalent of task manager invinciblegod Linux - General 1 07-26-2005 02:00 AM
Linux Task Manager Shotz Linux - Newbie 6 02-25-2004 02:37 PM
Task Manager in Linux? FutureEX Linux - General 2 10-18-2003 03:11 PM
task manager infotech Linux - General 1 11-16-2001 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:53 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