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

NOCO发布于 分类 Linux

574天前 有1个用户阅读过

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

本文是否有所帮助?
点赞 0
感谢支持
0
多谢反馈
评论 0
打赏

支持微信/支付宝

评论

网友