87 lines
2.3 KiB
HTML
87 lines
2.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content=
|
|
"text/html; charset=utf-8">
|
|
<title>mkdir - Make directories</title>
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</HEAD>
|
|
<body bgcolor="#FFFFFF">
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
|
|
|
|
<h2>mkdir - Make directories</h2>
|
|
|
|
<strong>Synopsis</strong>
|
|
|
|
<p><strong>mkdir [-p] [-m</strong> <em>mode</em><strong>]</strong>
|
|
<em>directory ...</em></p>
|
|
|
|
<p><strong>Description</strong></p>
|
|
|
|
<p>The <strong>mkdir</strong> utility creates the directories named
|
|
as operands, in the order specified, using mode rwxrwxrwx (0777) as
|
|
modified by the current file creation mask.</p>
|
|
|
|
<p>The user must have write permission in the parent directory.</p>
|
|
|
|
<p><strong>Options</strong></p>
|
|
|
|
<dl>
|
|
<dt><strong>-m</strong></dt>
|
|
|
|
<dd>Set the file permission bits of the final created directory to
|
|
the specified <em>mode</em>. The mode argument can be in any of the
|
|
formats supported by the <a href="chmod.htm">chmod</a> command. If
|
|
a symbolic mode is specified, the operation characters + and - are
|
|
interpreted relative to an initial mode of "a=rwx".</dd>
|
|
|
|
<dt><strong>-p</strong></dt>
|
|
|
|
<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 file creation mask,
|
|
plus write and search permission for the owner.</dd>
|
|
</dl>
|
|
|
|
<p><strong>Exit Status</strong></p>
|
|
|
|
<ul>
|
|
<li>0 if successful</li>
|
|
|
|
<li>>0 if an error occurred.</li>
|
|
</ul>
|
|
|
|
<p><strong>Related information</strong></p>
|
|
|
|
<ul>
|
|
<li><a href="chmod.htm">chmod - Change file modes
|
|
(permissions)</a></li>
|
|
|
|
<li><a href="rmdir.htm">rmdir - Remove directories</a></li>
|
|
|
|
<li><a href="umask.htm">umask - Get or set the file mode creation
|
|
mask</a></li>
|
|
</ul>
|
|
|
|
<strong>Examples</strong>
|
|
|
|
<ol>
|
|
<li>Create the directories "new", "java", "test", "dir", "4" and
|
|
"bob" and set the mode to read, write and execute for owner.
|
|
|
|
<pre>
|
|
mkdir -p -m 700 /new/java/test/dir/4/bob
|
|
</pre>
|
|
</li>
|
|
</ol>
|
|
|
|
<!-- end ibmbody========================================================= -->
|
|
</body>
|
|
</html>
|
|
|