Disclaimer: This article is a blogger original article, follow the CC 4.0 BY copyright agreement, reproduced, please attach the original source link and this statement.
Article Directory
mkdir
Description: create a subdirectory.
grammar | Explanation | Remark |
---|---|---|
mkdir -pv {folder1/folder2} |
||
parameter | Explanation | Remark |
-p |
That is --parents , create directories recursively as parent directory does not exist, press the directory hierarchy is automatically created directory |
|
-v |
That is --verbose , each print information created directory |
|
-m |
That is --mode , set access rights to the new directory |
|
example | Explanation | Remark |
mkdir -p test1/test2 |
||
mkdir -m 777 test3 |
||
mkdir -pv test4/{x/y/z,xx/yy/zz} |
||
mkdir -pv test5/{a,d}_{b,c} |