Tip of the week

by Stephen 8/21/2008 8:16:00 PM
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.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Administration

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen
Hacked by Stephen McGroarty
Content © Stephen McGroarty


About the author

Stephen Mcgroarty - Avatar Stephen McGroarty

I am a Microsoft Certified Professional with Windows 2003 Server. I have a firm understanding of Linux, Windows, and everything needed for both workstation and servers.

E-mail me Send mail

Calendar

<<  February 2012  >>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

View posts in large calendar

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012