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
|
|
|
|
2024-09-07 13:24:22 +01:00
|
|
|
- Create specific directories and their parents if needed:
|
2021-08-13 16:44:18 +01:00
|
|
|
|
2024-09-07 13:24:22 +01:00
|
|
|
`mkdir {{-p|--parents}} {{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
|
|
|
|
2024-09-07 13:24:22 +01:00
|
|
|
`mkdir {{-m|--mode}} {{rwxrw-r--}} {{path/to/directory1 path/to/directory2 ...}}`
|