summaryrefslogtreecommitdiffstats
path: root/bin/mkdir
diff options
context:
space:
mode:
authorjoel <joel@FreeBSD.org>2013-03-15 20:12:54 +0000
committerjoel <joel@FreeBSD.org>2013-03-15 20:12:54 +0000
commit2ba67e203aad1ffa4650449d05e44a2b61e99ad6 (patch)
tree33ce444ce5867809f8179d3cfcb13267eb94e1c0 /bin/mkdir
parent90b1ba3bc42c541bb65e1492274cdbdeca8d1dea (diff)
downloadFreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.zip
FreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.tar.gz
Add a few examples.
Obtained from: OpenBSD
Diffstat (limited to 'bin/mkdir')
-rw-r--r--bin/mkdir/mkdir.119
1 files changed, 18 insertions, 1 deletions
diff --git a/bin/mkdir/mkdir.1 b/bin/mkdir/mkdir.1
index 0f8d812..d702348 100644
--- a/bin/mkdir/mkdir.1
+++ b/bin/mkdir/mkdir.1
@@ -32,7 +32,7 @@
.\" @(#)mkdir.1 8.2 (Berkeley) 1/25/94
.\" $FreeBSD$
.\"
-.Dd January 25, 1994
+.Dd March 15, 2013
.Dt MKDIR 1
.Os
.Sh NAME
@@ -87,6 +87,23 @@ Be verbose when creating directories, listing them as they are created.
The user must have write permission in the parent directory.
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+Create a directory named
+.Pa foobar :
+.Pp
+.Dl $ mkdir foobar
+.Pp
+Create a directory named
+.Pa foobar
+and set its file mode to 700:
+.Pp
+.Dl $ mkdir -m 700 foobar
+.Pp
+Create a directory named
+.Pa cow/horse/monkey ,
+creating any non-existent intermediate directories as necessary:
+.Pp
+.Dl $ mkdir -p cow/horse/monkey
.Sh COMPATIBILITY
The
.Fl v
OpenPOWER on IntegriCloud