-m, --mode
Set file MODE (as in chmod), not a=rwx - umask.
An option of mkdirx.
Usage
mkdirx -m MODE DIRECTORY...
mkdirx --mode=MODE DIRECTORY...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-m | --mode | MODE | set file MODE (as in chmod), not a=rwx - umask |
Examples
Create a directory only its owner can enter
mkdirx -m 700 ~/.secretsUse a symbolic mode
mkdirx -m u=rwx,go=rx sharedGrant everything except write for others, using a symbolic mode with a removal
mkdirx -m a=rwx,o-w dropCreate a world-writable scratch directory with the sticky bit set
mkdirx -m 1777 scratchCreate missing parents but give only the last directory an explicit mode
mkdirx -p -m 755 www/publicHelp in the terminal
gnux help mkdirx --mode