LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to view running services? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-view-running-services-373942/)

ctroyp 10-17-2005 10:14 AM

How to view running services?
 
Using the terminal, how can I view all of the current running services?

jonkristian 10-17-2005 10:36 AM

type 'top' in your terminal;)

ctroyp 10-17-2005 11:01 AM

Thanks for the quick reply.

I know my httpd service is running, but it is not showing in this list. Should it?

tredegar 10-17-2005 11:37 AM

Try ps-Al | grep httpd

There are other ways to view / start /stop services, but as you are not telling us your distribution (Hint: Update your LQ Profile), we cannot tell you.

ctroyp 10-17-2005 11:50 AM

Sorry, I am using Fedora Core 4.

tredegar 10-17-2005 12:02 PM

Sorry, I know nothing about FC4, but the ls -Al will tell you what is running.

Emmanuel_uk 10-18-2005 02:01 AM

on most distro
chkconfig --list (ok services might not be exactly running if you stopped them)

what about
service --list-all (if I remember well)
otherwise try
man service

ksysv is another one (is it installed?)

cannot remember the FC very specific other service monitor

try in a terminal

apropos service

jonkristian 10-18-2005 07:46 AM

Tredegar, ls -al will not tell you which services is running, it lists all the content in the current directory with extra information;)

tredegar 10-18-2005 07:56 AM

slackmartian,
You are right - my typo! ps -Al will show All running processes, but chkconfig is a useful command that is new to me, and useful too.

jonkristian 10-18-2005 02:37 PM

;)

chrism01 10-19-2005 01:04 AM

On the FC series, you can also use
top -u <username>
ie specify the user running the process/apps you're interested in.

jonkristian 10-19-2005 05:17 AM

or type top, then press u and your username;)

tredegar 10-19-2005 11:57 AM

top is a useful utility, but it doesn't show all the processes that are running - only as many as will fit into your terminal window. So if some process is not using many resources, you may not see it, even though it is running.
ps -A or service --status-all are more likely to give ctroyp the answer (s)he needs.

ctroyp 10-19-2005 12:14 PM

Quote:

Originally posted by tredegar
ps -A or service --status-all are more likely to give ctroyp the answer (s)he needs. [/B]
Thanks for the info tredegar and everyone else. I got what I needed.

Troy


All times are GMT -5. The time now is 09:20 AM.