Blob
1 .TH MKDIR 12 .SH NAME3 mkdir \- make a directory4 .SH SYNOPSIS5 .B mkdir6 [7 .B -p8 ] [9 .B -m10 . I mode11 ]12 .I dirname ...13 .SH DESCRIPTION14 .I Mkdir15 creates the specified directories.16 It17 requires write permission in the parent directory.18 .PP19 If the20 .B -p21 flag is given,22 .I mkdir23 creates any necessary parent directories24 and does not complain if the target directory already exists.25 .PP26 The27 .B -m28 flag sets the permissions to be used when creating the directory.29 The default is 0777.30 .SH "SEE ALSO"31 .IR rm (1)32 .br33 .IR cd34 in35 .IR rc (1)36 .SH SOURCE37 .B /usr/local/plan9/src/cmd/mkdir.c38 .SH DIAGNOSTICS39 .I Mkdir40 returns null exit status if all directories were successfully made.41 Otherwise it prints a diagnostic and returns42 .B \&"error"43 status.