Creating multiple directories simultaneously

Daniel Bye freebsd-questions at
Fri Mar 26 11:33:00 UTC 2010

On Fri, Mar 26, 2010 at 07:12:48AM -0400, Jerry wrote:
> I could have sworn that I saw a method of creating several directories,
> actually a parent direct and several sub-directories simultaneously;
> however, I cannot fine the documentation any longer.
> Assume I want to create a directory: FOO with three directories under
> it, foo-1, foo-2 and foo-3. I tried: mkdir -p foo {foo-1, foo-2, foo-3}


 $ mkdir -p FOO/{foo-1,foo-2,foo-3}

Daniel Bye
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list