Difference between revisions of "Mkdir"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
* Man page: https://man7.org/linux/man-pages/man1/mkdir.1.html | * Man page: https://man7.org/linux/man-pages/man1/mkdir.1.html | ||
* <code>[[mkdir --help]]</code> | * <code>[[mkdir --help]]</code> | ||
+ | -p, --parents | ||
===Examples=== | ===Examples=== |
Revision as of 01:17, 4 February 2022
wikipedia:mkdir command to create directories.
-p, --parents
Contents
Examples
mkdir -p /path/to/your/new/dir
mkdir ~/.ssh
mkdir -p "$(dirname "$1")" && touch "$1"
Options
-p, --parents makes parents directories if needed
Related commands
See also
Advertising: