Skip to content

Question of the Day - 17 Aug 2007

You need to create two new directories in your home directory. The first one is called /home/bob/letters and the second one is /home/bob/letters/sales. How would you accomplish this with a single command?

4 Comments

  1. Quintin

    mkdir -r /home/bob/letters/sales

    Posted on 17-Aug-07 at 8:52 am | Permalink
  2. Quintin

    sorry mkdir -p not -r

    Posted on 17-Aug-07 at 8:52 am | Permalink
  3. mkdir /home/bob/letters /home/bob/letters/sales

    Posted on 17-Aug-07 at 8:57 am | Permalink
  4. James Bannon

    mkdir -p /home/bob/letters/sales

    The -p option to mkdir supplies the missing parent but you will need correct permissions.

    Posted on 19-Aug-07 at 1:49 pm | Permalink

Post a Comment

Your email is never published nor shared.