-p
is short for --parents
- it creates the entire directory tree up to the given directory.
E.g., suppose there are no directories in your current directory. If you execute:
mkdir a/b/c
It will fail, since you do not have an a
subdirectory.
On the other hand
mkdir -p a/b/c
…
Top comments (0)