2014-01-26 17:30:19 +00:00
|
|
|
# mkdir
|
|
|
|
|
2023-01-07 15:30:52 +00:00
|
|
|
> Create directories and set their permissions.
|
2021-04-01 16:54:26 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/mkdir>.
|
2014-01-26 17:30:19 +00:00
|
|
|
|
2023-01-07 15:30:52 +00:00
|
|
|
- Create specific directories:
|
2014-01-26 17:30:19 +00:00
|
|
|
|
2023-01-07 15:30:52 +00:00
|
|
|
`mkdir {{path/to/directory1 path/to/directory2 ...}}`
|
2014-01-26 17:30:19 +00:00
|
|
|
|
2023-01-07 15:30:52 +00:00
|
|
|
- Create specific directories and their [p]arents if needed:
|
2021-08-13 16:44:18 +01:00
|
|
|
|
2023-01-07 15:30:52 +00:00
|
|
|
`mkdir -p {{path/to/directory1 path/to/directory2 ...}}`
|
2021-08-13 16:44:18 +01:00
|
|
|
|
2023-01-07 15:30:52 +00:00
|
|
|
- Create directories with specific permissions:
|
2014-01-26 17:30:19 +00:00
|
|
|
|
2023-01-07 15:30:52 +00:00
|
|
|
`mkdir -m {{rwxrw-r--}} {{path/to/directory1 path/to/directory2 ...}}`
|