(2) 在dirc目录中新建文件,文件名为filename.txt。
时间: 2024-03-25 18:40:39 浏览: 22
可以使用以下命令在dirc目录中新建名为filename.txt的文件:
```
touch /path/to/dirc/filename.txt
```
其中,`/path/to/dirc`应该替换为实际的dirc目录路径。如果当前目录是dirc目录,可以使用相对路径:
```
touch filename.txt
```
这个命令会在当前目录下创建名为filename.txt的空文件。
相关问题
在 dirc 目录中创建另一个名为 subdir 的子目录。
好的,您可以使用以下命令在当前目录下创建名为 subdir 的子目录:
```
mkdir subdir
```
这将在当前目录(dirc目录)中创建一个名为 subdir 的子目录。
(3) 在dirc目录中创建子目录,目录名为subdir
可以使用以下命令在dirc目录中创建名为subdir的子目录:
```
mkdir /path/to/dirc/subdir
```
其中,`/path/to/dirc`应该替换为实际的dirc目录路径。如果当前目录是dirc目录,可以使用相对路径:
```
mkdir subdir
```
这个命令会在当前目录下创建名为subdir的子目录。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)