O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required