mkdir: recursive alternative?

Robert Dailey rcdailey at gmail.com
Thu Jul 17 18:57:23 UTC 2008


On Thu, Jul 17, 2008 at 1:56 PM, Robert Dailey <rcdailey at gmail.com> wrote:
> Hi,
>
> I'm trying to use mkdir to create something like:
>
> /foo/blah/bar/something
>
> However, 'foo', 'blah', and 'bar' are not guaranteed to exist, so I
> need mkdir to recursively create the directories that are not there.
> Is there a way to do this? I did a lot of searching on google but I
> came up with nothing. Thanks.
>

Never mind:

mkdir -p




More information about the ubuntu-users mailing list