如何创建/testdir/dir1/x, /testdir/dir1/y, /testdir/dir1/x/a, /testdir/dir1/x/b, /testdir/dir1/y/a, /testdir/dir1/y/b
时间: 2023-08-04 07:03:09 浏览: 206
要创建/testdir/dir1/x, /testdir/dir1/y, /testdir/dir1/x/a, /testdir/dir1/x/b, /testdir/dir1/y/a, /testdir/dir1/y/b,可以使用以下命令:
mkdir -p /testdir/dir1/x /testdir/dir1/y /testdir/dir1/x/a /testdir/dir1/x/b /testdir/dir1/y/a /testdir/dir1/y/b
这条命令使用mkdir命令创建目录,并使用-p选项来创建多级目录。通过这个命令,你可以一次性创建所有需要的目录。
#### 引用[.reference_title]
- *1* [linux 简单目录操作](https://blog.csdn.net/ly1358152944/article/details/52254043)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [mkdir命令练习](https://blog.csdn.net/weixin_34007879/article/details/92351241)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Linux 创建目录的方法](https://blog.csdn.net/weixin_34265814/article/details/93018124)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文