Take the 2-minute tour ×

When try to cd into init.d or less init.d I get an error message:

No such file or directory

Where is init.d - why do I get that error?

share|improve this question
Can you cd /etc/init.d/? –  Lekensteyn Mar 1 '11 at 15:36
@Lekensteyn no i cannot - this is my question- why? –  Shira Mar 1 '11 at 16:32
when i type ls-l inside /etc i do see the init.d - but can't cd inside –  Shira Mar 1 '11 at 16:35
Shira, it's very unlikely, if not, impossible that you cannot cd /etc/init.d/. Did you run the command as I mentioned it? Did you follow these steps: 1. open Terminal 2. Type cd /etc/init.d/ 3. You should be in. If not, please post the output of ls -la /etc on paste.ubuntu.com –  Lekensteyn Mar 1 '11 at 16:39
thanx - it's do work now- i'm brand new with linux- my mistake was that i've typed in /etc "cd /init.d" instead of "cd init.d" - didn't know the different between........... –  Shira Mar 1 '11 at 16:46
show 2 more comments

2 Answers

up vote 5 down vote accepted

On a fresh installation of Ubuntu 10.10 I am able to cd /etc/init.d which is where init.d resides:

marco@img32:~$ cd /etc/init.d

You'll need to make sure you are going in to the /etc directory if you are going to make any changes to init.d contents as init.d is a folder and not a file. There are various other folders named etc so ensure you are in the /etc directory.

share|improve this answer
add comment

Maybe you're in the wrong directory:

ibmux:~/proj/mini/forum > less init.d
init.d: No such file or directory

init.d isn't a file which can be seen by less,

ibmux:~/proj/mini/forum > cd /etc
ibmux:/etc > less init.d
init.d is a directory

do you mean ls

ibmux:/etc > ls init.d
acpid               failsafe-x                       nullmailer         single
acpi-support        gdm                              nvidia-kernel      skeleton
alsa-utils          grub-common                      ondemand           smartmontools
share|improve this answer
add comment

Your Answer


