28.1. How can you tell if you have run level directories?

The directories where the rc.scripts are kept (actually they are links, we’ll discuss this later) live in either:

/etc/rcN.d 

or

/etc/rc.d/rcN.d 

where N is a number. There are usually seven, since the rcN.d directories are numbered 0 to 6, but you might have a couple more on your system such as rcS.d. This does not matter; all we are concerned about are the numbered ones.

						$ pwd /etc drwxr-xr-x 2 root sys 1024 Dec 22 1996 rc0.d drwxr-xr-x 2 root sys 1024 Dec 22 1996 rc1.d drwxr-xr-x 2 root sys 1024 Dec 22 1996 rc2.d drwxr-xr-x 2 root sys 1024 Dec 22 1996 rc3.d drwxr-xr-x 2 root sys 1024 Dec 22 1996 rc4.d drwxr-xr-x 2 root sys 1024 Dec 22 1996 rc5.d drwxr-xr-x 2 root sys 1024 Dec 22 1996 ...

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.