52 lines
1.1 KiB
Groff
52 lines
1.1 KiB
Groff
.Dd September 29, 2020
|
|
.Dt MKDIR 1
|
|
.Os HitchHiker Linux
|
|
.Sh NAME
|
|
.Nm mkdir
|
|
.Nd create directories
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Fl pv
|
|
.Op Fl m Ar mode
|
|
[\fI\,name1\/\fR]...
|
|
[\fI\,name2\/\fR]...
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
creates a directory for each
|
|
.Ar name
|
|
if it does not already exist, using mode
|
|
.Li rwxrwxrwx (\&0777)
|
|
as modified by the current
|
|
.Xr umask 2 .
|
|
.Sh OPTIONS
|
|
.Bl -tag -width Ds
|
|
.It Fl m
|
|
Set the file permission bits of the final created directory to
|
|
the specified mode.
|
|
.It Fl p
|
|
Create intermediate directories as required. If this option is not
|
|
specified, the full path prefix of each operand must already exist.
|
|
Intermediate directories are created with permission bits of
|
|
.Li rwxrwxrwx (\&0777)
|
|
as modified by the current umask. It is not considered an error if the
|
|
argument directory already exists.
|
|
.It Fl v
|
|
print a message for each created directory.
|
|
.El
|
|
.Pp
|
|
The user must have write permission in the parent directory.
|
|
.Sh EXIT STATUS
|
|
.Ex -std mkdir
|
|
.Sh AUTHOR
|
|
Written by the JeanG3nie for HitchHiker Linux.
|
|
.Sh SEE ALSO
|
|
.Xr chmod 1 ,
|
|
.Xr rmdir 1 ,
|
|
.Xr mkdir 2 ,
|
|
.Xr umask 2
|
|
.Sh HISTORY
|
|
A
|
|
.Nm
|
|
utility appeared in
|
|
.At v1 .
|