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…
/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!
chkconfig --list | grep "3:on" | awk "{print $1}" | sort
This makes the list a LOT more readable and even alphabetizes it for you!
