2、 在当前目录中新建目录,其目录树如下图所示:(10分)
时间: 2024-03-02 21:47:59 浏览: 19
以下是创建目录的命令:
```bash
mkdir -p level1/level2/level3
```
解释如下:
1. `mkdir` 表示创建目录的命令。
2. `-p` 参数表示递归创建目录,即如果上级目录不存在,则先创建上级目录。
3. `level1/level2/level3` 表示要创建的目录路径。
运行该命令后,当前目录下会创建一个名为 `level1` 的目录,其中包含一个名为 `level2` 的子目录,`level2` 目录下又包含一个名为 `level3` 的子目录,目录结构如下:
```
.
└── level1
└── level2
└── level3
```
其中 `.` 表示当前目录。
相关推荐
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![ppt](https://img-home.csdnimg.cn/images/20210720083527.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)