LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 10-17-2005, 10:14 AM   #1
ctroyp
Member
 
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Rep: Reputation: 15
How to view running services?


Using the terminal, how can I view all of the current running services?
 
Old 10-17-2005, 10:36 AM   #2
jonkristian
LQ Newbie
 
Registered: Feb 2005
Location: Norway
Distribution: Archlinux
Posts: 18

Rep: Reputation: 0
type 'top' in your terminal
 
Old 10-17-2005, 11:01 AM   #3
ctroyp
Member
 
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks for the quick reply.

I know my httpd service is running, but it is not showing in this list. Should it?
 
Old 10-17-2005, 11:37 AM   #4
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
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.
 
Old 10-17-2005, 11:50 AM   #5
ctroyp
Member
 
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Original Poster
Rep: Reputation: 15
Sorry, I am using Fedora Core 4.
 
Old 10-17-2005, 12:02 PM   #6
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Sorry, I know nothing about FC4, but the ls -Al will tell you what is running.
 
Old 10-18-2005, 02:01 AM   #7
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
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
 
Old 10-18-2005, 07:46 AM   #8
jonkristian
LQ Newbie
 
Registered: Feb 2005
Location: Norway
Distribution: Archlinux
Posts: 18

Rep: Reputation: 0
Tredegar, ls -al will not tell you which services is running, it lists all the content in the current directory with extra information
 
Old 10-18-2005, 07:56 AM   #9
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
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.
 
Old 10-18-2005, 02:37 PM   #10
jonkristian
LQ Newbie
 
Registered: Feb 2005
Location: Norway
Distribution: Archlinux
Posts: 18

Rep: Reputation: 0
 
Old 10-19-2005, 01:04 AM   #11
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
On the FC series, you can also use
top -u <username>
ie specify the user running the process/apps you're interested in.
 
Old 10-19-2005, 05:17 AM   #12
jonkristian
LQ Newbie
 
Registered: Feb 2005
Location: Norway
Distribution: Archlinux
Posts: 18

Rep: Reputation: 0
or type top, then press u and your username
 
Old 10-19-2005, 11:57 AM   #13
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
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.
 
Old 10-19-2005, 12:14 PM   #14
ctroyp
Member
 
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Original Poster
Rep: Reputation: 15
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

Last edited by ctroyp; 10-19-2005 at 12:16 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
view runinig services juanb Linux - General 3 05-17-2006 12:36 PM
How can I view running services? ctroyp Fedora 8 10-19-2005 01:45 PM
Quickly view a list of active services vharishankar Linux - General 19 04-02-2005 09:23 AM
Command to view all running services joevilton Linux From Scratch 2 08-14-2004 11:55 AM
what services should i have running? jamesgf Linux - General 3 04-18-2003 02:24 PM


All times are GMT -5. The time now is 06:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration