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.10 (Berkeley) 07/27/91 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.Bl -tag -width Ds 31.It Fl p 32Create intermediate directories as required. If this option is not 33specified, the full path prefix of each operand must already exist. 34.El 35.Pp 36The user must have write permission in the parent directory. 37.Pp 38.Nm Mkdir 39exits 0 if successful, and >0 if an error occurred. 40.Sh SEE ALSO 41.Xr rmdir 1 42.Sh STANDARDS 43The 44.Nm mkdir 45command is 46.St -p1003.2 47compliant. 48This manual page is derived from the 49.St -p1003.2 50manual page. 51