linux - CentOS: List Running Services

There are many linux services which run in the background. Here is a way to list them based on your needs..

If you would like to list all services configured to run on a linux computer, try the following command..
/sbin/chkconfig --list | grep :on | sort

If neeed to list all installed sevices(running/stopped), then try this command..
/sbin/chkconfig --list | awk '{ print $1 }' | sort

For getting the status of services, here is a one line shell script to use..
for S in $(/sbin/chkconfig --list | awk '/:on/ { print $1 }' | sort); do echo $S; /sbin/service $S status; echo; done | less

Comments..

Ram(2016-05-26) : Thanks for very handy commands. But, you can also try a simple ps command with less pipe thru system root login like : ps aux | less We are just piping the output of ps command to less command to show the list processes one screen at a time.

Your Opinion(html/javascript not allowed)..

CAPTCHA refresh

copy the digits from the image into this box