So how about this for a weekly update. Nothing happening and nothing going on. Lets see if I can do a weekly tip. Today will be a
Linux tip, specifically the
Red Hat based distributions. So you want to know what is loading when you start the machine. There is the command
chkconfig, that when run shows you the options you can use.
chkconfig --list [name]
chkconfig --add name
chkconfig --del name
chkconfig [--level levels] name <on|off|reset>
chkconfig [--level levels] name
so with chkconfig –list it will show you everything that you can enable and disable on the box, I am not listing it here for space/time reasons, also I am not near a linux box at the moment.
So chkconfig shows you everything running, so next let us combine it with a pipe and a
grep
chkconfig –list | grep on
This will show you on the services that are turned on, all of them, no matter what run level as long as it is on.
Lets say you are looking for mysql, so you can get specific on it and do
chkconfig –list | grep mysql
if it shows as being off just do a
chkconfig mysql on
and that will turn it on for run levels 3, 4, and 5.
That is it for tonight.