The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html><head><title>mkdir</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.01,
  using Pod::Simple::PullParser v2.02,
  under Perl v5.008002 at Thu Aug  5 13:56:18 2004 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p><b>mkdir</b> -- make directories</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<p><b>mkdir</b> [-<b>p</b>] [-<b>m</b> <i>mode</i>] <i>directory_name ...</i></p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p><b>mkdir</b> creates the directories names as operands,
in the order specified,
using mode rwxrwxrwx (0777) as modified by the current umask.</p>

<h2><a class='u' href='#___top' title='click to go to top of document'
name="OPTIONS"
>OPTIONS</a></h2>

<p><b>mkdir</b> accepts the following options:</p>

<dl>
<dt><a name="-m"
>-m</a></dt><p class="pad"></p>

<dd>Set the file permission bits of the final created directory to the specified mode.
The mode argument can be in any of the formats specified to the chmod utility,
though they are <i>not</i> all implemented.
(See <b>BUGS</b>.) If a symbolic mode is specified,
the operation characters ``+&#39;&#39; and ``-&#39;&#39; are interpreted relative to an initial mode of ``a=rwx&#39;&#39;.</dd><p class="pad"></p>

<dt><a name="-p"
>-p</a></dt><p class="pad"></p>

<dd>Create intermediate directories as required.
If this option is not specified,
the full path prefix of each operand must already exist.
Intermediate directories are created with permission bits of rwxrwxrwx (0777) as modified by the current umask,
plus write and search permission for the owner.
Do not consider it an error if the argument directory already exists.</dd><p class="pad"></p>
</dl>

<p>The user must have write permission in the parent directory.</p>

<p>mkdir exits 0 if successful,
and &#62;0 if an error occurred.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="ENVIRONMENT"
>ENVIRONMENT</a></h1>

<p>The mode used by <b>mkdir</b> in creating directories is affected by the umask.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="BUGS"
>BUGS</a></h1>

<p><b>mkdir</b> depends on the underlying Perl mkdir function.
On systems without proper support for mode setting,
or without POSIX modes,
it does not set the modes specified.</p>

<p>This <b>mkdir</b> implementation is modelled on the <b>OpenBSD</b> and <b>NetBSD</b> variants.
It accepts permission options,
as they do,
which it does not implement: specifically it ignores the set user id,
set group id,
and sticky bit flags.
<b>mkdir</b> collapses the ``X&#39;&#39; and ``x&#39;&#39; options.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="STANDARDS"
>STANDARDS</a></h1>

<p>This <b>mkdir</b> implementation is compatible with the <b>NetBSD</b> implementation.
This implementation has also been based on the <b>OpenBSD</b> manual description.
The <b>OpenBSD mkdir</b> implementation is expected to be compliant with the <b>IEEE Std1003.2-1992</b> specification,
also known as <b>POSIX.2</b>,
so this implementation may be,
as well.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>

<p>The Perl implementation of <b>mkdir</b> was written by James Wetterau,
Jr.,
<i>jwjr@panix.com</i>.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is copyright by James Wetterau,
Jr.,
1999.</p>

<p>This program is free and open software.
You may use,
copy,
modify,
distribute and sell this program (and any modified variants) in any way you wish,
provided you do not restrict others to do the same.</p>

<!-- end doc -->

</body></html>