xref: /original-bsd/bin/mkdir/mkdir.1 (revision 3f14a87d)
1.\" Copyright (c) 1989, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" %sccs.include.redist.roff%
8.\"
9.\"	@(#)mkdir.1	6.12 (Berkeley) 03/02/93
10.\"
11.Dd
12.Dt MKDIR 1
13.Os
14.Sh NAME
15.Nm mkdir
16.Nd make directories
17.Sh SYNOPSIS
18.Nm mkdir
19.Op Fl p
20.Ar directory_name  ...
21.Sh DESCRIPTION
22.Nm Mkdir
23creates the directories named as operands, in the order specified,
24using mode
25.Li \&0777
26modified by the current
27.Xr umask  2  .
28.Pp
29The options are as follows:
30.Pp
31.Bl -tag -width indent
32.It Fl p
33Create intermediate directories as required.  If this option is not
34specified, the full path prefix of each operand must already exist.
35.El
36.Pp
37The user must have write permission in the parent directory.
38.Pp
39.Nm Mkdir
40exits 0 if successful, and >0 if an error occurred.
41.Sh SEE ALSO
42.Xr rmdir 1
43.Sh STANDARDS
44The
45.Nm mkdir
46utility is expected to be
47.St -p1003.2
48compatible.
49