Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I am kind of new to Linux world... What is the difference between these two folders? I see same rc#.d folders and I see rc.local in both directories too... ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    7

    /etc/rd#.d and /etc/rc.d/rd#.d

    Hi, I am kind of new to Linux world... What is the difference between these two folders? I see same rc#.d folders and I see rc.local in both directories too...

    Btw I don't even know my linux version!! I am new to this company too and they have a linux server. When I do cat /etc/redhat-release it gives:

    Linux GT 4 (Tarrasque)

    As I see this "redhat-release" file I assume it's like redhat linux... Sorry if I post question at wrong place... Thanks guys!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    From the command line, enter: uname -a
    This will give you the system name, kernel, OS, and when the kernel was built. For example, on my CentOS 5.3 system (same as Red Hat Enterprise Linux 5.3), I get "Linux cos1.apfrmsys.com 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux". The man page for uname will tell you what each field is about: man uname

    Anyway, I believe that the rc#.d directories in /etc/rc.d contain the startup scripts that are executed for each run level. Normally, the system boots into runlevel 5, which gives you the GUI login screen on the system console, whereas runlevel 3 will boot to a text-based login and you have to start the X-server manually if you need it on the console. From /etc/inittab:
    # Default runlevel. The runlevels used by RHS are:
    # 0 - halt (Do NOT set initdefault to this)
    # 1 - Single user mode
    # 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
    # 3 - Full multiuser mode
    # 4 - unused
    # 5 - X11
    # 6 - reboot (Do NOT set initdefault to this)
    #
    id:5:initdefault:
    In any case, you should not be munging around in these directories, other than to read the scripts for educational purposes. If you remove or change anything, your system will likely not appreciate it, nor would your users. In any case, you have to be running as root to do more than look.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    7
    Right! I think the files and folders under rc.d are the right ones to edit. I tried both rc.local file under /etc/ and under /etc/rc.d/ and the rc.d one worked. I think somebody copied the files out of rc.d by mistake... I am good now! Thanks!

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by huntkey View Post
    Right! I think the files and folders under rc.d are the right ones to edit. I tried both rc.local file under /etc/ and under /etc/rc.d/ and the rc.d one worked. I think somebody copied the files out of rc.d by mistake... I am good now! Thanks!
    OK. I know that I don't have any rd#.d files or directories on my RHEL 5 system. The files rc#.d in /etc are just links to /etc/rc.d/rc#.d
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Apr 2009
    Posts
    7
    Quote Originally Posted by Rubberman View Post
    OK. I know that I don't have any rd#.d files or directories on my RHEL 5 system. The files rc#.d in /etc are just links to /etc/rc.d/rc#.d
    You are right...! I just found out they are only links.... I thought they were actual folders... haha Thanks for help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...