Question:

Unix:creating a new directory?

by  |  earlier

0 LIKES UnLike

Hello,

I am trying to create a new directory but whenever I do I get this

mkdir: cannot create directory `/mnt/autofs/misc/dukpc33.home/ss233/ana... No such file or directory

DUH! No such file or directory...that's why I'm trying to create it!!! What is the problem here? my home directory is /mnt/autofs/misc/dukpc33.home/ss233

So what's wrong here?

 Tags:

   Report

3 ANSWERS


  1. or do:

    mkdir -p /mnt/autofs/misc/dukpc33.home/ss233/ana....

    The -p option automatically creates the missing parent directories.


  2. The error doesn't mean that the directory that you're trying to create doesn't exist.  (As you say, "duh!")  It means that the directory you are trying to create the directory in doesn't exist.

    Your question appears to have truncated the full path, as it ends in "ss233/ana...".  What comes after the "ss233"?

    If you remove the final part of the pathname (ie: the directory you're trying to create) and type "ls -ld /mnt/autofs/whatever...", does it show a directory?

    For example, "mkdir /tmp/foo/bar/foobar" requires that you already have a directory named "/tmp/foo/bar":

    $ mkdir /tmp/foo/bar/foobar

    mkdir: cannot create directory `/tmp/foo/bar/foobar': No such file or directory

    $ ls -ld /tmp/foo/bar

    ls: /tmp/foo/bar: No such file or directory

    $

  3. Try this:

    cd /mnt/autofs/misc/dukpc33.home

    mkdir ss233

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.