tldr/pages/common/mkdir.md

17 lines
382 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
`mkdir {{directory}}`
- 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}}`