July 1, 2007
How to find files executed upon system startup in linux os?
The operating system's complete name is Redhat Linux enterprise EL4
- Typically, the startup scripts for Redhat are kept in /etc/init.d, but not every one of those scripts is guaranteed to be executed. To see which ones are actually running, you have to go to /etc/rc[0-6].d, and look at which ones are actually executed at various run levels on your system.
You can also consult the "Services" GUI tool from your X windows interface.
- Conventionally the startup files for all Unix/Linux systems are found in "/etc/rc.d" or "/etc/init.d". Red Hat Linux variants as a rule have both directories, though often they wind up being the same files hard linked to appear in multiple places.
Under "/etc/init.d" you'll generally see a bunch of shell scripts which start and shut down the various parts of your system. Under "/etc/rc.d" you'll find a more elaborate arrangement of scripts under subdirectories with names like "rc#.d" where "#" is a single digit corresponding to one of your system's run levels. On some systems these "rc#.d" directories are under "/etc" with no "rc.d" directory in between.
Usually the digits correspond to various run states. Usually 0 corresponds to shutdown, 6 corresponds to reboot, 1 or 2 is a single-user mode for maintenance and 2 or 3 corresponds to normal, multi-user operation. That said, the best place to look for the interpretation of run levels is a file "/etc/inittab".
Normally all of this is documented as "man" pages on your system. You should be able to run a command from the shell like:
man init
to learn precisely how your computer goes through its startup process.
- how to kick a ball
Tags: yellow dog linux, puppy linux























