tldr/pages/common/mkdir.md

17 lines
453 B
Markdown
Raw Normal View History

2014-01-26 17:30:19 +00:00
# mkdir
> Create directories and set their permissions.
> More information: <https://www.gnu.org/software/coreutils/mkdir>.
2014-01-26 17:30:19 +00:00
- Create specific directories:
2014-01-26 17:30:19 +00:00
`mkdir {{path/to/directory1 path/to/directory2 ...}}`
2014-01-26 17:30:19 +00:00
- Create specific directories and their [p]arents if needed:
`mkdir -p {{path/to/directory1 path/to/directory2 ...}}`
- Create directories with specific permissions:
2014-01-26 17:30:19 +00:00
`mkdir -m {{rwxrw-r--}} {{path/to/directory1 path/to/directory2 ...}}`