Linux 中 mkdir -p选项
001、测试1
[root@pc1 test1]# ls [root@pc1 test1]# mkdir a/b/c ## mkdir创建连续目录,失败 mkdir: cannot create directory ‘a/b/c’: No such file or directory [root@pc1 test1]# ls [root@pc1 test1]# mkdir -p a/b/c ## 增加 -p选项, 表示传递创建 [root@pc1 test1]# ls a [root@pc1 test1]# tree ## 查看结构 . └── a └── b └── c 3 directories, 0 files

。

浙公网安备 33010602011771号