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...
...
- 04-22-2009 #1Just 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!
- 04-25-2009 #2Linux Guru
- 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:
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.# 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:Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-25-2009 #3Just 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!
- 04-25-2009 #4
- 04-25-2009 #5Just Joined!
- Join Date
- Apr 2009
- Posts
- 7


Reply With Quote
