blob: 02cf81fa4b3345a97100e38b4e8b2ad0cc26c019 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
## Name
mkdir - create directories
## Synopsis
```**sh
$ mkdir [options...] directories...
```
## Description
Create a new empty directory for each of the given *directories*.
## Options
* `-p`, `--parents`: Create parent directories if they don't exist
* `-m`, `--mode`: Sets the permissions for the final directory (possibly altered by the process umask). The mode argument must be given in octal format.
## Examples
```sh
$ mkdir -p /tmp/foo/bar
$ mkdir -m 0700 /tmp/owner-only
```
## See also
* [`mkdir`(2)](../man2/mkdir.md)
|