LinuxQuestions.org
Visit Jeremy's Blog.
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-03-2012, 06:48 PM   #1
mosheur
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
greping services


Hello every one,

thanks to linuxquestions.org for the forum

I'm a newbies in Linux
need to know is: suppose in my switch server some services are their, few's r running and few's r stopped can any one provide me the Linux command to grep all the services regard less its running or stopped.

Any mistakes founded plz give up as newbie.

Regards,
Mosheur
 
Old 05-03-2012, 06:55 PM   #2
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
The following command will give you the status of all services.

service --status-all
 
Old 05-03-2012, 06:58 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
What do you mean by a "switch server"?

Which distro do you use? For system 7'ish distros you can use chkconfig to list services. If it uses systemd you can use "systemctl" and grep for .service.
 
  


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
conditional greping ut0ugh1 Programming 7 10-27-2011 02:12 PM
Greping special character and removing it goelvish Programming 4 07-01-2010 09:52 AM
greping sendmail tekmann33 Linux - Server 1 09-13-2007 03:23 PM
Picking out the right file when ls | greping XST1 Programming 4 02-15-2005 08:32 PM

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

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