For faster navigation, this Iframe is preloading the Wikiwand page for mkdir.

mkdir

mkdirmake directory,创建目录)命令UnixDOSOS/2Microsoft Windows操作系统以及PHP脚本语言中用于创建一个目录。DOS、OS/2和Windows中,这条指令常被简写用作md

用法

[编辑]

一般用法如下:

mkdir name_of_directory

name_of_directory是将被创建的目录名。如上所示输入后,会在当前目录下创建新目录。

选项

[编辑]

在类Unix操作系统中,mkdir提供参数。最常用的三个参数为:

  • -p: 以路径名格式指定目录名,如果路径名中的目录不存在,便会新建一个。
  • -v:显示mkdir创建的每个目录。通常与-p配合使用。
  • -m:指定目录的文件权限。

示例

[编辑]

历史

[编辑]

参见

[编辑]

参考资料

[编辑]

外部链接

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
mkdir
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?