两个命令都会创建文件夹。我read MKDIR甚至可以创建子文件夹。
答案 0 :(得分:19)
除了@ npocmaka' s answer之外,我想提供所有这些别名的列表,仅供参考:
cd = chdir
md = mkdir
rd = rmdir
ren = rename
del = erase
答案 1 :(得分:16)
只是同一命令的别名。这是帮助信息:
C:\>md /?
Creates a directory.
MKDIR [drive:]path
MD [drive:]path
和
C:\>mkdir /?
Creates a directory.
MKDIR [drive:]path
MD [drive:]path
If Command Extensions are enabled MKDIR changes as follows:
MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:
mkdir \a\b\c\d
is the same as:
mkdir \a
chdir \a
mkdir b
chdir b
mkdir c
chdir c
mkdir d
which is what you would have to type if extensions were disabled.
答案 2 :(得分:0)
在Linux / Unix / MacOS上,mkdir
非常相似,但是md
毫无意义。如果您想要跨平台的内容,则应使用mkdir
。