mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
mkdir: Implement --mode option
Only supports permissions given in octal format at the moment.
This commit is contained in:
parent
1255316d26
commit
6ca34f5647
2 changed files with 26 additions and 5 deletions
|
@ -15,11 +15,13 @@ Create a new empty directory for each of the given *directories*.
|
|||
## Options
|
||||
|
||||
* `-p`, `--parents`: Create parent directories if they don't exist
|
||||
* `-m`, `--mode`: Sets the permissions for the final directory (possibly altered by the process umask). The mode argument must be given in octal format.
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
$ mkdir -p /tmp/foo/bar
|
||||
$ mkdir -m 0700 /tmp/owner-only
|
||||
```
|
||||
|
||||
## See also
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue