Usage: mkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(s), if they do not already exist.
Options:
-m Set permission mode (as in chmod), not rwxrwxrwx - umask -p No error if directory exists, make parent directories as needed |
Example:
$ mkdir /tmp/foo $ mkdir /tmp/foo /tmp/foo: File exists $ mkdir /tmp/foo/bar/baz /tmp/foo/bar/baz: No such file or directory $ mkdir -p /tmp/foo/bar/baz |