Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.