43 lines · 717 B · Text
RawDownload
.TH MKDIR 1.SH NAMEmkdir \- make a directory.SH SYNOPSIS.B mkdir[.B -p] [.B -m. I mode].I dirname ....SH DESCRIPTION.I Mkdircreates the specified directories.Itrequires write permission in the parent directory..PPIf the.B -pflag is given,.I mkdircreates any necessary parent directoriesand does not complain if the target directory already exists..PPThe.B -mflag sets the permissions to be used when creating the directory.The default is 0777..SH "SEE ALSO".IR rm (1).br.IR cdin.IR rc (1).SH SOURCE.B /sys/src/cmd/mkdir.c.SH DIAGNOSTICS.I Mkdirreturns null exit status if all directories were successfully made.Otherwise it prints a diagnostic and returns.B \&"error"status.