Posted By

noah on 10/23/07


basic path commandline name commands FileSystem create easy tools scripting mkdir recurse subdirectories

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Create a directory recursively

 / Published in: Bash

Given the legal path of a nonexistent directory, create that path and directory.

  1. mkdir -p /Users/Shared/Desktop/homer/marge/bart/lisa/maggie/snowball2
  3. #or, in a .bash_profile
  4. alias mkdir="mkdir -p "

Report this snippet  

You need to login to post a comment.