mkdir - make directory

mkdir

The mkdir (make directory) command in the Unix, DOS, FlexOS, OS/2, Microsoft Windows, and ReactOS operating systems is used to make a new directory.

mkdir [-mp] name_of_directory

-m:配置文件夹的权限,直接设定,忽略预设权限 (umask)。
-p:帮助你直接将所需要的目录 (包含上层目录) 递归建立起来。

An example of -p in action is:

mkdir -p /tmp/a/b/c

If /tmp/a exists but /tmp/a/b does not, mkdir will create /tmp/a/b before creating /tmp/a/b/c.

猜你喜欢

转载自blog.csdn.net/chengyq116/article/details/83901929