LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2011, 01:31 AM   #1
Soji Antony
Member
 
Registered: Jul 2010
Posts: 54

Rep: Reputation: 1
/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 ...

Last edited by Soji Antony; 02-20-2011 at 01:40 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-20-2011, 02:14 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
2 members found this post helpful.
Old 02-20-2011, 02:20 AM   #3
Soji Antony
Member
 
Registered: Jul 2010
Posts: 54

Original Poster
Rep: Reputation: 1
Hi EricTRA

Thank you so much for your answer
 
Old 02-20-2011, 02:36 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

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

Kind regards,

Eric
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
technical question about hard links v soft links 7stud Linux - Newbie 2 02-23-2007 07:57 PM
soft links linuxtesting2 Solaris / OpenSolaris 2 06-12-2006 03:39 PM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 01:10 PM
Soft Links varunbihani Linux - Newbie 3 06-05-2005 12:42 AM
Soft Links Resqtech Linux - Newbie 4 08-26-2001 11:00 AM


All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration