Results 1 to 4 of 4

Thread: mkdir -p

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    USA
    Beans
    19
    Distro
    Ubuntu 9.10 Karmic Koala

    mkdir -p

    what does the -p mean/do?

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: mkdir -p

    man mkdir has the answer: -p, --parents
    no error if existing, make parent directories as needed

  3. #3
    Join Date
    Jul 2008
    Location
    Birmingham, England
    Beans
    2,400

    Re: mkdir -p

    means create the parent directories if they don't exist

  4. #4
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: mkdir -p

    So if you want to make a directory called wow in a directory blah in a directory blag........

    you go
    Code:
    mkdir -p blag/blah/wow
    instead of

    Code:
    mkdir blag
    mkdir blag/blah
    mkdir blag/blah/wow

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •