typo
[unix-history] / usr / src / bin / mkdir / mkdir.1
.\" Copyright (c) 1989, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\"
.\" %sccs.include.redist.roff%
.\"
.\" @(#)mkdir.1 6.12 (Berkeley) %G%
.\"
.Dd
.Dt MKDIR 1
.Os
.Sh NAME
.Nm mkdir
.Nd make directories
.Sh SYNOPSIS
.Nm mkdir
.Op Fl p
.Ar directory_name ...
.Sh DESCRIPTION
.Nm Mkdir
creates the directories named as operands, in the order specified,
using mode
.Li \&0777
modified by the current
.Xr umask 2 .
.Pp
The options are as follows:
.Pp
.Bl -tag -width indent
.It Fl p
Create intermediate directories as required. If this option is not
specified, the full path prefix of each operand must already exist.
.El
.Pp
The user must have write permission in the parent directory.
.Pp
.Nm Mkdir
exits 0 if successful, and >0 if an error occurred.
.Sh SEE ALSO
.Xr rmdir 1
.Sh STANDARDS
The
.Nm mkdir
utility is expected to be
.St -p1003.2
compatible.