LinuxQuestions.org
Review your favorite Linux distribution.
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 08-28-2005, 12:40 AM   #1
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
How to get a listing of running daemons / processes


Can any one suggest a method of getting a list of running daemons or processes?

either in CLI or in X-Windows/Gnome
 
Old 08-28-2005, 12:45 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
ps aux
 
Old 08-28-2005, 12:54 AM   #3
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Cool,

so I can then kill <PID> and that will stop the process or daemon with that PID ?
 
Old 08-28-2005, 01:15 AM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
ya,
kill -9 <pid> will work
regards
 
Old 08-28-2005, 09:01 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
run

apropos kill

you will get many man pages for "kill" with many different options

regards
 
Old 08-28-2005, 10:20 AM   #6
Krontab
LQ Newbie
 
Registered: Jul 2005
Posts: 12

Rep: Reputation: 0
One thing to note is that kill without the -9 is softer and allows a program to come down in a cleaner manner allowing treads to come down and complete their units of work. The kill -9 basically takes down the process in a brute force fasion and is grate when an application is hung and not responding to the OS in any way but, you may cause data corruption if the process was in the middle of a long running unit of work. It really depends on the process function as to which method to use.

-Krontab
 
Old 08-28-2005, 04:36 PM   #7
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Also if you want to be lazy and not find the PID, you can do "killall [name of process]"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Two daemons running on the same port Quantum0726 Linux - Networking 4 08-15-2005 11:39 PM
command to see daemons running? kpachopoulos Linux - Newbie 3 09-13-2004 07:17 AM
Listing Processes oriel_gizmo Programming 6 08-20-2004 06:40 AM
Two Printer Daemons Running angelaramesys Linux - Software 0 07-15-2004 08:44 AM
Listing processes by memory usage? Seventh Linux - Newbie 3 06-17-2004 11:05 AM


All times are GMT -5. The time now is 11:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration