plan9port/man/man1/mkdir.1

44 lines
729 B
Groff
Raw Normal View History

2004-04-10 18:53:55 +00:00
.TH MKDIR 1
.SH NAME
mkdir \- make a directory
.SH SYNOPSIS
.B mkdir
[
.B -p
2004-04-21 22:37:29 +00:00
] [
.B -m
. I mode
2004-04-10 18:53:55 +00:00
]
.I dirname ...
.SH DESCRIPTION
.I Mkdir
creates the specified directories.
It
requires write permission in the parent directory.
.PP
If the
.B -p
flag is given,
.I mkdir
creates any necessary parent directories
and does not complain if the target directory already exists.
2004-04-21 22:37:29 +00:00
.PP
The
.B -m
flag sets the permissions to be used when creating the directory.
The default is 0777.
2004-04-10 18:53:55 +00:00
.SH "SEE ALSO"
.IR rm (1)
.br
.IR cd
in
.IR rc (1)
.SH SOURCE
2004-04-19 19:22:56 +00:00
.B /usr/local/plan9/src/cmd/mkdir.c
2004-04-10 18:53:55 +00:00
.SH DIAGNOSTICS
.I Mkdir
returns null exit status if all directories were successfully made.
Otherwise it prints a diagnostic and returns
.B \&"error"
status.