List enabled services in Linux

Today I needed to list all of the services which were enabled on boot-up for one of the servers I maintain. Obviously, my first port of call was to use the nifty tool ChkConfig like so…

[adsense:468x60:4496506397]

/sbin/chkconfig --list

But that also listed all the services which were NOT set to start at boot time… Surely grep would be me saviour?! Well thanks to a comment on another site, I introduce this set of commands!

[adsense:468x60:4496506397]

chkconfig --list | grep "3:on" | awk "{print $1}" | sort

This makes the list a LOT more readable and even alphabetizes it for you!