diff options
author | Xavier Defrang <xavier.defrang@gmail.com> | 2021-12-19 21:47:41 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-21 13:13:04 -0800 |
commit | 6ca34f56474bd2aeb401d71ae17e4842da6d1585 (patch) | |
tree | 9085f04d3f17128fcb231e79f68a362731723e32 /Base | |
parent | 1255316d261cd05b01d0d7c67d08c3939f5df637 (diff) | |
download | serenity-6ca34f56474bd2aeb401d71ae17e4842da6d1585.zip |
mkdir: Implement --mode option
Only supports permissions given in octal format
at the moment.
Diffstat (limited to 'Base')
-rw-r--r-- | Base/usr/share/man/man1/mkdir.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/mkdir.md b/Base/usr/share/man/man1/mkdir.md index 485d6d7607..02cf81fa4b 100644 --- a/Base/usr/share/man/man1/mkdir.md +++ b/Base/usr/share/man/man1/mkdir.md @@ -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 |