Ubuntu mkdir 8.25 命令详解


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

另请参阅:    

基本用法     详细用法

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

基本语法

mkdir [OPTION]... DIRECTORY...
			

注意:

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

选项参数

参数 EN 解释 中文翻译 备注
-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 输出版本信息并退出

基本用法

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

 

版权声明: 本文为独家原创稿件,版权归 乐数软件 ,未经许可不得转载。