mkdir.1 (1103B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-04-08
- .Dt MKDIR 1
- .Os
- .Sh NAME
- .Nm mkdir
- .Nd make directories
- .Sh SYNOPSIS
- .Nm
- .Op Fl pv
- .Op Fl m Ar mode
- .Ar dir...
- .Sh DESCRIPTION
- .Nm
- creates each given
- .Ar dir
- in the order specified.
- .Sh OPTIONS
- .Bl -tag -width _m_mode
- .It Fl m Ar mode
- Set permission of new directories specified by
- .Ar dir ,
- relative to a=rwx using the same format as
- .Xr chmod 1 .
- .It Fl p
- Parents mode, create missing directories present in the path given by
- .Ar dir .
- As required by POSIX, parents are created with u=wx|~umask as their default mode, ignoring
- .Fl m Ar mode .
- .It Fl v
- Verbose mode, print each successfully made directory.
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr chmod 1
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Pp
- The
- .Fl v
- option is an extension also present in GNU coreutils and FreeBSD.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me