computer_knowledge_notes/Software/文件管理/mkdir.md

19 lines
470 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### 用法
```
mkdir [option] directorys # 创建目录
```
#### 选项
```
-m, --mode=MODE # 设置文件的mode就像chmod命令一样
-p, --parents # 如果父文件夹不存在则直接创建
-v, --verbose # 每创建一个文件夹都会输出一条信息
-Z # 将每个创建的目录的SELinux安全上下文设置为默认类型。
--context[=CTX] # 类似于-Z或者如果指定CTX则将SELinux或SMACK安全上下文设置为CTX。
```