Added in an additional use of mkdir. (#24939)

Added in the ability to create multiple directories at a given level via usage of curly brackets {}
This commit is contained in:
doomcrewinc
2018-12-14 20:10:47 -07:00
committed by Manish Giri
parent dcb179d46b
commit ea7442072d

View File

@ -18,5 +18,17 @@ Commonly used options:
Let's say we need to create a directory `dir` in the path `a/b/c/dir`, but directory `b` and `c` don't exist. In this case, `mkdir -p a/b/c/dir` will create the missing directories in the path. Let's say we need to create a directory `dir` in the path `a/b/c/dir`, but directory `b` and `c` don't exist. In this case, `mkdir -p a/b/c/dir` will create the missing directories in the path.
You can also create multiple directories at a given level. Picture the following directory structure:
```
.
└── wwwroot
├── css
├── images
└── media
├── mp3
└── mp4
```
This can easily be recreated `mkdir -p wwwroot/{css,images,media/{mp4,mp3}}` By using curly braces `{}` you can create multiple directories at a given level.
### More Information: ### More Information:
* [Wikipedia - Mkdir](https://en.wikipedia.org/wiki/Mkdir) * [Wikipedia - Mkdir](https://en.wikipedia.org/wiki/Mkdir)