tldr/pages/common/mkdir.md

17 lines
390 B
Markdown
Raw Normal View History

2014-01-26 17:30:19 +00:00
# mkdir
> Creates a directory.
> More information: <https://www.gnu.org/software/coreutils/mkdir>.
2014-01-26 17:30:19 +00:00
- Create a directory in current directory or given path:
2014-01-26 17:30:19 +00:00
2022-12-04 09:12:49 +00:00
`mkdir {{path/to/directory}}`
2014-01-26 17:30:19 +00:00
- Create multiple directories in the current directory:
`mkdir {{directory_1 directory_2 ...}}`
- Create directories recursively (useful for creating nested dirs):
2014-01-26 17:30:19 +00:00
`mkdir -p {{path/to/directory}}`