mkdir 8.25 命令详解


创建目录,若此目录不存在。

另请参阅:    

Basic Usage     Detailed Usage

mkdir -p /home/ftp/test/one/two
mkdir /home/ftp/test/one/two
			

基本语法

mkdir [OPTION]... DIRECTORY...
			

Note:

长选项强制性自变量,对于短选项也是强制性的。

选项参数

参数 EN 解释 中文翻译 Remark
-m, --mode=MODE set file mode (as in chmod), not a=rwx - umask 设置文件模式 (如在 chmod 中),而不是 a=rwx - umask
-p, --parents no error if existing, make parent directories as needed 没有错误若存在,根据需要创建父级目录
-v, --verbose print a message for each created directory 为每个创建目录打印消息
-Z set SELinux security context of each created directory to the default type 将每个创建目录的 SELinux 安全上下文设为默认类型
--context[=CTX] like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX 像 -Z,或者若指定了 CTX,则将 SELinux 或 SMACK 安全上下文设为 CTX
--help display this help and exit 显示此帮助并退出
--version output version information and exit 输出版本信息并退出

Basic Usage

Function 命令 文字解释 示例 示例解释
帮助 mkdir --help 展示帮助信息
Version mkdir --version 展示版本信息

 

Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.