Linux mkdir命令(mkdir指令)

Posted Dontla

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux mkdir命令(mkdir指令)相关的知识,希望对你有一定的参考价值。

[root@RV1126_RV1109:~]# mkdir --help
Usage: mkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(ies), if they do not already exist.	//创建 DIRECTORY(ies),如果它们尚不存在。

Mandatory arguments to long options are mandatory for short options too.	//长选项的强制参数对于短选项也是强制参数。(?)
  -m, --mode=MODE   set file mode (as in chmod), not 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
      --context[=CTX]  like -Z, or if CTX is specified then set the SELinux
                         or SMACK security context to CTX
      --help     display this help and exit
      --version  output version information and exit

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report mkdir translation bugs to <https://translationproject.org/team/>
Full documentation at: <https://www.gnu.org/software/coreutils/mkdir>
or available locally via: info '(coreutils) mkdir invocation'
[root@RV1126_RV1109:~]# 

[root@ubuntu /home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/build]1# mkdir --help
用法:mkdir [选项]... 目录...
Create the DIRECTORY(ies), if they do not already exist.

必选参数对长短选项同时适用。
  -m, --mode=MODE   set file mode (as in chmod), not 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
      --context[=CTX]  like -Z, or if CTX is specified then set the SELinux
                         or SMACK security context to CTX
      --help		显示此帮助信息并退出
      --version		显示版本信息并退出

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
请向<http://translationproject.org/team/zh_CN.html> 报告mkdir 的翻译错误
Full documentation at: <http://www.gnu.org/software/coreutils/mkdir>
or available locally via: info '(coreutils) mkdir invocation'
[root@ubuntu /home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/build]2# 

以上是关于Linux mkdir命令(mkdir指令)的主要内容,如果未能解决你的问题,请参考以下文章

linux 进程管理

Linux 基本指令的操作和示例说明(五节)

Linux 常见命令 目录处理指令

Linux基础指令入门

Linux介绍以及初学指令详解

Linux基本指令