mkdir - make directory

mkdir - make directory

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.

你可能感兴趣的:(Ubuntu,Desktop,Server,LTS,mkdir)