1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 20:17:34 +00:00
serenity/Base/usr/share/man/man1/mkdir.md
Xavier Defrang 6ca34f5647 mkdir: Implement --mode option
Only supports permissions given in octal format
at the moment.
2021-12-21 13:13:04 -08:00

29 lines
541 B
Markdown

## Name
mkdir - create directories
## Synopsis
```**sh
$ mkdir [options...] directories...
```
## Description
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
* [`mkdir`(2)](../man2/mkdir.md)