View Source

!http://www.sun.com/bigadmin/home/images/bigadminHeaderWikiThumb.jpg!
{section:border=false}
{column:width=20%}
{include:TOC for Tech Tips}
{column}
{column:width=55%}


h2. Make various directories recursively

Nuno Rocha, May 2009

Simplify the creation of various directories inside one another, in one command. You can do it like this:

{code}
$ mkdir test
$ cd test
/test $ mkdir maria
/test $ cd maria
/test/maria $ mkdir manuel
/test/maria $ cd manuel
/test/maria/manuel $
{code}

Or, you can do it with the *-p* option:

{code}
$ mkdir -p test/maria/manuel
{code}

In Portuguese: [Fazer Directórios uns Dentro dos Outros|http://wikis.sun.com/pages/viewpage.action?pageId=112591433]

{column}
{section}

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact