LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /etc/rc.d Directory soft links (https://www.linuxquestions.org/questions/linux-newbie-8/etc-rc-d-directory-soft-links-863827/)

Soji Antony 02-20-2011 12:31 AM

/etc/rc.d Directory soft links
 
Hi

I can see some soft links in /etc directory which are pointing to /etc/rc.d Directory contents.

Code:

lrwxrwxrwx.  1 root root        7 Jan 31 08:19 rc -> rc.d/rc
lrwxrwxrwx.  1 root root      10 Jan 31 08:19 rc0.d -> rc.d/rc0.d
lrwxrwxrwx.  1 root root      10 Jan 31 08:19 rc1.d -> rc.d/rc1.d
lrwxrwxrwx.  1 root root      10 Jan 31 08:19 rc2.d -> rc.d/rc2.d
lrwxrwxrwx.  1 root root      10 Jan 31 08:19 rc3.d -> rc.d/rc3.d
lrwxrwxrwx.  1 root root      10 Jan 31 08:19 rc4.d -> rc.d/rc4.d
lrwxrwxrwx.  1 root root      10 Jan 31 08:19 rc5.d -> rc.d/rc5.d
lrwxrwxrwx.  1 root root      10 Jan 31 08:19 rc6.d -> rc.d/rc6.d
lrwxrwxrwx.  1 root root      13 Jan 31 08:19 rc.local->rc.d/rc.local
lrwxrwxrwx.  1 root root      15 Jan 31 08:19 rc.sysinit -> rc.d/rc.sysinit

Any body please tell me what is the purpose of these soft links in /etc directory ? I am using RHEL 5.4 ...

EricTRA 02-20-2011 01:14 AM

Hello,

Those links are just there to have compliance with the general Linux Filesystem Hierarchy Standard. Some distros use /etc/rcX.d and others use /etc/rc.d/rcX.d, where X is the runlevel. In order to have compliance as mentioned, short links are used so that programs can be installed on both systems. For example, Debian uses /etc/rcX.d. You can read more about FHS on WikiPedia or directly on the FHS Homepage. Hope that helps.

Kind regards,

Eric

Soji Antony 02-20-2011 01:20 AM

Hi EricTRA

Thank you so much for your answer

EricTRA 02-20-2011 01:36 AM

Hi,

You're welcome. Have a nice day and enjoy Linux.

Kind regards,

Eric


All times are GMT -5. The time now is 07:57 AM.