Commit | Line | Data |
---|---|---|
ef1f0408 | 1 | .\" Copyright (c) 1989, 1990 The Regents of the University of California. |
c882ced5 KB |
2 | .\" All rights reserved. |
3 | .\" | |
27c71911 | 4 | .\" %sccs.include.redist.man% |
c882ced5 | 5 | .\" |
cc188be2 | 6 | .\" @(#)mkdir.1 6.7 (Berkeley) %G% |
f34dabd9 | 7 | .\" |
cc188be2 | 8 | .Vx |
5325ced3 CL |
9 | .Dd |
10 | .Dt MKDIR 1 | |
cc188be2 | 11 | .Os |
5325ced3 CL |
12 | .Sh NAME |
13 | .Nm mkdir | |
14 | .Nd make directories | |
15 | .Sh SYNOPSIS | |
16 | .Nm mkdir | |
17 | .Op Fl p Ar directory_name ... | |
18 | .Sh DESCRIPTION | |
19 | .Nm Mkdir | |
c882ced5 | 20 | creates the directories named as operands, in the order specified, |
5325ced3 CL |
21 | using mode |
22 | .Li \&0777 | |
23 | modified by the current | |
24 | .Xr umask 2 . | |
25 | .Pp | |
c882ced5 | 26 | The options are as follows: |
5325ced3 CL |
27 | .Tw Ds |
28 | .Tp Fl p | |
c882ced5 KB |
29 | Create intermediate directories as required. If this option is not |
30 | specified, the full path prefix of each operand must already exist. | |
5325ced3 CL |
31 | .Tp |
32 | .Pp | |
33 | The user must have write permission in the parent directory. | |
34 | .Pp | |
35 | .Nm Mkdir | |
c882ced5 | 36 | exits 0 if successful, and >0 if an error occurred. |
5325ced3 CL |
37 | .Sh SEE ALSO |
38 | .Xr rmdir 1 | |
39 | .Sh STANDARDS | |
c882ced5 | 40 | Mkdir is POSIX 1003.2 compliant. |
5325ced3 | 41 | This manual page is derived from the POSIX 1003.2 manual page. |