We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

noah on 10/23/07


Tagged

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


Versions (?)


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
  2.  
  3. #or, in a .bash_profile
  4. alias mkdir="mkdir -p "

Report this snippet 

You need to login to post a comment.