~ubuntu-branches/ubuntu/natty/9base/natty

« back to all changes in this revision

Viewing changes to mkdir/mkdir.1

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2010-06-04 17:22:03 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100604172203-ei85j0da495sr8ut
Tags: 1:6-1
* Adding Kai as co-maintainer.
* Merging upstream version 6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH MKDIR 1
 
2
.SH NAME
 
3
mkdir \- make a directory
 
4
.SH SYNOPSIS
 
5
.B mkdir
 
6
[
 
7
.B -p
 
8
] [
 
9
.B -m
 
10
. I mode
 
11
]
 
12
.I dirname ...
 
13
.SH DESCRIPTION
 
14
.I Mkdir
 
15
creates the specified directories.
 
16
It
 
17
requires write permission in the parent directory.
 
18
.PP
 
19
If the
 
20
.B -p
 
21
flag is given,
 
22
.I mkdir
 
23
creates any necessary parent directories
 
24
and does not complain if the target directory already exists.
 
25
.PP
 
26
The
 
27
.B -m
 
28
flag sets the permissions to be used when creating the directory.
 
29
The default is 0777.
 
30
.SH "SEE ALSO"
 
31
.IR rm (1)
 
32
.br
 
33
.IR cd
 
34
in
 
35
.IR rc (1)
 
36
.SH SOURCE
 
37
.B \*9/src/cmd/mkdir.c
 
38
.SH DIAGNOSTICS
 
39
.I Mkdir
 
40
returns null exit status if all directories were successfully made.
 
41
Otherwise it prints a diagnostic and returns
 
42
.B \&"error"
 
43
status.