mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 20:17:34 +00:00
29 lines
541 B
Markdown
29 lines
541 B
Markdown
## 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)
|