2022-02-14 02:22:51 +00:00
|
|
|
---
|
|
|
|
title: mkdir
|
|
|
|
layout: command
|
2022-03-04 12:10:09 +00:00
|
|
|
version: 0.59.1
|
2022-02-14 02:22:51 +00:00
|
|
|
---
|
|
|
|
|
2021-05-30 00:57:04 +00:00
|
|
|
Make directories, creates intermediary directories as required.
|
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
## Signature
|
2021-05-30 00:57:04 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
```> mkdir ...rest --show-created-paths```
|
2021-05-30 00:57:04 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
## Parameters
|
2021-05-30 00:57:04 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
- `...rest`: the name(s) of the path(s) to create
|
|
|
|
- `--show-created-paths`: show the path(s) created.
|
2021-05-30 00:57:04 +00:00
|
|
|
|
2022-02-20 01:13:33 +00:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Make a directory named foo
|
|
|
|
```shell
|
|
|
|
> mkdir foo
|
|
|
|
```
|
|
|
|
|
|
|
|
Make multiple directories and show the paths created
|
|
|
|
```shell
|
|
|
|
> mkdir -s foo/bar foo2
|
|
|
|
```
|