xref: /original-bsd/bin/mkdir/mkdir.1 (revision 95a66346)
1.\" Copyright (c) 1989, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)mkdir.1	6.7 (Berkeley) 03/14/91
7.\"
8.Vx
9.Dd
10.Dt MKDIR 1
11.Os
12.Sh NAME
13.Nm mkdir
14.Nd make directories
15.Sh SYNOPSIS
16.Nm mkdir
17.Op Fl p Ar directory_name  ...
18.Sh DESCRIPTION
19.Nm Mkdir
20creates the directories named as operands, in the order specified,
21using mode
22.Li \&0777
23modified by the current
24.Xr umask  2  .
25.Pp
26The options are as follows:
27.Tw Ds
28.Tp Fl p
29Create intermediate directories as required.  If this option is not
30specified, the full path prefix of each operand must already exist.
31.Tp
32.Pp
33The user must have write permission in the parent directory.
34.Pp
35.Nm Mkdir
36exits 0 if successful, and >0 if an error occurred.
37.Sh SEE ALSO
38.Xr rmdir 1
39.Sh STANDARDS
40Mkdir is POSIX 1003.2 compliant.
41This manual page is derived from the POSIX 1003.2 manual page.
42