Blob


1 .TH MKDIR 1
2 .SH NAME
3 mkdir \- make a directory
4 .SH SYNOPSIS
5 .B mkdir
6 [
7 .B -p
8 ]
9 .I dirname ...
10 .SH DESCRIPTION
11 .I Mkdir
12 creates the specified directories.
13 It
14 requires write permission in the parent directory.
15 .PP
16 If the
17 .B -p
18 flag is given,
19 .I mkdir
20 creates any necessary parent directories
21 and does not complain if the target directory already exists.
22 .SH "SEE ALSO"
23 .IR rm (1)
24 .br
25 .IR cd
26 in
27 .IR rc (1)
28 .SH SOURCE
29 .B /usr/local/plan9/src/cmd/mkdir.c
30 .SH DIAGNOSTICS
31 .I Mkdir
32 returns null exit status if all directories were successfully made.
33 Otherwise it prints a diagnostic and returns
34 .B \&"error"
35 status.