Charles.Forsyth20060303-partialeea662d19 years agoHistory
49 lines · 1.0 KB · Text
RawDownload
.TH MKDIR 1.SH NAMEmkdir \- make a directory.SH SYNOPSIS.B mkdir[.B -p][.I dirname ...].SH DESCRIPTION.I Mkdircreates the specified directories. It requires write permission in the parent directory..PPThe.B -poption causes.I mkdirto create the whole path.IR dirname ,including any missing parent directories; it also will notcomplain if.I dirnamealready exists and is a directory..PPThe new directories are created with permissions starting with.B 8r777but masked with the permissions of the parent directory according to theprocedure followed by.IR sys-open (2).For example, if the parent directory lacks write permission for groupand has no permissions for others,so will the newly created directory..SH SOURCE.B /appl/cmd/mkdir.b.SH "SEE ALSO".IR chmod (1),.IR cd (1),.IR rm (1),.IR sys-open (2).SH DIAGNOSTICSIf any directory cannot be created successfully,.I mkdirprints a warning, and continues with any remaining directories,but returns.B\&"error"exit status at the end.