LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-20-2016, 12:00 AM   #1
mangeshk
LQ Newbie
 
Registered: Oct 2016
Posts: 2

Rep: Reputation: Disabled
List of running or active services on RedHat linux


Hi, I want an output like windows > net start command.

C:\Users\admin>net start
These Windows services are started:
Application Host Helper Service
Application Information
DHCP Client
Diagnostic Policy Service
Diagnostic Service Host
Distributed Link Tracking Client
DNS Client
The command completed successfully.

a clean list of Service Names that are presently active or running on RedHat Linux.

I want this to be achieved using inline command only as i can not user script for this.

can you guide me the command for this.
 
Old 10-20-2016, 12:20 AM   #2
mangeshk
LQ Newbie
 
Registered: Oct 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
is this command returns all running service names?

chkconfig --list | grep "n"
 
Old 10-21-2016, 07:56 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
or maybe:

systemctl list-units

If you are on newer RH systems.
 
  


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
List services running on Linux box along with the respective package location-Urgent! vipinsqa Linux - Newbie 3 11-06-2014 02:17 PM
How do I see a list of services running mikebarnes55 Linux - Newbie 2 10-28-2014 06:28 PM
how do i list all the running services in FreeBSD baronobeefdip *BSD 3 04-10-2011 11:17 AM
Quickly view a list of active services vharishankar Linux - General 19 04-02-2005 09:23 AM

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

All times are GMT -5. The time now is 04:36 PM.

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