mkdir make directory
选项
-v 显示创建详情
-p 递归创建
[root@rstx-201 ~]# mkdir test/test/test -vp
mkdir: created directory ‘test’
mkdir: created directory ‘test/test’
mkdir: created directory ‘test/test/test’
[root@rstx-201 ~]# tree
.
└── test
└── test
└── test
3 directories, 1 file
mkdir mkdir {test,test2/{1,2}}
[root@rstx-201 ~]# mkdir {test,test2/{1,2}} -pv
mkdir: created directory ‘test’
mkdir: created directory ‘test2’
mkdir: created directory ‘test2/1’
mkdir: created directory ‘test2/2’
[root@rstx-201 ~]# tree
.
├── anaconda-ks.cfg
├── test
└── test2
├── 1
└── 2