"mkdir"命令常用选项:
常用选项 | 描述 |
-p |
|
使用"mkdir"命令:
1、使用相对路径创建单个目录文件。
2、使用相对路径创建多个目录文件。
3、使用绝对路径创建单个目录。
4、使用绝对路径创建多个目录。
5、使用"-p"选项,创建级联目录。
使用"touch"命令:
- 文件名严格区分大小写。(如:"file"、"FILE" 是完全不同的两个文件)
- 文件名不能宝航特殊字符。(如:"/"、"*"等)
- 文件名最多可达255个字符。
1、目标文件不存在时,使用"touch"命令创建一个空白文件。
2、目标文件存在时,使用"touch"命令改变文件内容的修改时间。