mkdir -p ?
I read the man pages about the command mkdir -p , I still am haveing trouble understanding it. Below is an excerpt from man mkdir
Here is an example:
you already have a directory:
you want a subdirectory c, which is in b, which is in a:
A "mkdir /a/b/c" will fail, because it tries to create c in /a/b - and b does not yet exist.
You might use:
mkdir -p /a/b/c
which will create b, because it does not exist.
thanks you made that very clear. I always thought their had to be an easier way of making a directory then multilple mkdir commands.:)
7 years later, from Google!
I am posting this here reply because this page is the first non-man answer for an "mkdir -p" query on Google.
To give some useful information/tip for all the noobs stumbling on here like I did.
You can use "mkdir -p" and the power of BRACES to create the biggest complexst hierarchies of directories you've ever dreamed of in one command!
Source: Wikipedia - mkdir
More info and examples here.
Introducing yourself to LQ by swearing in a necropost and
being reported for that. Nice. :}
And your version is simply a slightly more verbatious
explanation of the quote from the man-page in the first
|All times are GMT -5. The time now is 11:03 AM.|