xref: /original-bsd/bin/mkdir/mkdir.1 (revision 6ab384a1)
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.6 (Berkeley) 07/24/90
7.\"
8.Dd
9.Dt MKDIR 1
10.Os BSD 4.4
11.Sh NAME
12.Nm mkdir
13.Nd make directories
14.Sh SYNOPSIS
15.Nm mkdir
16.Op Fl p Ar directory_name  ...
17.Sh DESCRIPTION
18.Nm Mkdir
19creates the directories named as operands, in the order specified,
20using mode
21.Li \&0777
22modified by the current
23.Xr umask  2  .
24.Pp
25The options are as follows:
26.Tw Ds
27.Tp Fl p
28Create intermediate directories as required.  If this option is not
29specified, the full path prefix of each operand must already exist.
30.Tp
31.Pp
32The user must have write permission in the parent directory.
33.Pp
34.Nm Mkdir
35exits 0 if successful, and >0 if an error occurred.
36.Sh SEE ALSO
37.Xr rmdir 1
38.Sh STANDARDS
39Mkdir is POSIX 1003.2 compliant.
40.br
41This manual page is derived from the POSIX 1003.2 manual page.
42