aboutsummaryrefslogtreecommitdiff
path: root/bin/rmdir
diff options
context:
space:
mode:
authorJoel Dahl <joel@FreeBSD.org>2013-03-15 20:12:54 +0000
committerJoel Dahl <joel@FreeBSD.org>2013-03-15 20:12:54 +0000
commite9e3a1ab1fb5cad58704a28dc528be8c075d32d8 (patch)
tree33ce444ce5867809f8179d3cfcb13267eb94e1c0 /bin/rmdir
parent302868d91418dc0688773d9c7293b72c0862ed7d (diff)
downloadsrc-e9e3a1ab1fb5cad58704a28dc528be8c075d32d8.tar.gz
src-e9e3a1ab1fb5cad58704a28dc528be8c075d32d8.zip
Add a few examples.
Obtained from: OpenBSD
Notes
Notes: svn path=/head/; revision=248342
Diffstat (limited to 'bin/rmdir')
-rw-r--r--bin/rmdir/rmdir.114
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/rmdir/rmdir.1 b/bin/rmdir/rmdir.1
index 688d1445e8ef..ededd43e9bde 100644
--- a/bin/rmdir/rmdir.1
+++ b/bin/rmdir/rmdir.1
@@ -32,7 +32,7 @@
.\" @(#)rmdir.1 8.1 (Berkeley) 5/31/93
.\" $FreeBSD$
.\"
-.Dd March 21, 2004
+.Dd March 15, 2013
.Dt RMDIR 1
.Os
.Sh NAME
@@ -86,6 +86,18 @@ successfully.
.It Li >0
An error occurred.
.El
+.Sh EXAMPLES
+Remove the directory
+.Pa foobar ,
+if it is empty:
+.Pp
+.Dl $ rmdir foobar
+.Pp
+Remove all directories up to and including
+.Pa cow ,
+stopping at the first non-empty directory (if any):
+.Pp
+.Dl $ rmdir -p cow/horse/monkey
.Sh SEE ALSO
.Xr rm 1
.Sh STANDARDS