LinuxQuestions.org
Visit Jeremy's Blog.
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 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
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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,606

Rep: Reputation: 53
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
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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



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
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

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

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