add .Vx so tmac.andoc will call tmac.mdoc-old
[unix-history] / usr / src / bin / mkdir / mkdir.1
.\" Copyright (c) 1989, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" %sccs.include.redist.man%
.\"
.\" @(#)mkdir.1 6.7 (Berkeley) %G%
.\"
.Dd
.Dt MKDIR 1
.Os BSD 4.4
.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:
.Tw Ds
.Tp Fl p
Create intermediate directories as required. If this option is not
specified, the full path prefix of each operand must already exist.
.Tp
.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
Mkdir is POSIX 1003.2 compliant.
.br
This manual page is derived from the POSIX 1003.2 manual page.