Is there an easy way to create all subdirectories of a path in linux ?
Something like
mkdir /a/b/c/d/e/f
executed in / should create directories a,b,c,d,e,f
|
Is there an easy way to create all subdirectories of a path in linux ? Something like
executed in / should create directories a,b,c,d,e,f | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Just use:
The -p tells mkdir to create parent directories if they dont exist and doesn't give an error if the directory(ies) already exist(s). I wouldn't really consider this to be recursive. | |||
feedback
|