Linux一次创建多个目录的命令

发布于 分类 Linux

linux中用mkdir单个命令创建目录树,demo:

[root@localhost html]# mkdir -p ./seonoco.com/{a/{1,2,3/{31,32,33}},b/{4,5,6},c}
[root@localhost html]# tree ./
./
└── seonoco.com
 ├── a
 │ ├── 1
 │ ├── 2
 │ └── 3
 │ ├── 31
 │ ├── 32
 │ └── 33
 ├── b
 │ ├── 4
 │ ├── 5
 │ └── 6
 └── c

13 directories, 0 files 

以扩展序列为名建立多个目录,试试吧!

mkdir {1..10}

mkdir {a..g}

-- The End --

本文标题: Linux一次创建多个目录的命令

本文地址: https://seonoco.com/blog/linux-command-to-create-multiple-directories-at-a-time

本页面显示内容已针对移动端进行优化,点击查看完整版本