-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2174
Russell Harmon edited this page Jan 8, 2016
·
5 revisions
mkdir -p -m 0755 foo/bar/baz
When using -m 0755
, the mode of the directory created will be set to 0755. When using -p
, parent directories which do not exist will be created, but the mode specified by -m
will only be used on the non-parent directory. The parent directories will get their access mode the default way, via umask(2).