diff options
author | joel <joel@FreeBSD.org> | 2013-03-15 20:12:54 +0000 |
---|---|---|
committer | joel <joel@FreeBSD.org> | 2013-03-15 20:12:54 +0000 |
commit | 2ba67e203aad1ffa4650449d05e44a2b61e99ad6 (patch) | |
tree | 33ce444ce5867809f8179d3cfcb13267eb94e1c0 /bin/rmdir | |
parent | 90b1ba3bc42c541bb65e1492274cdbdeca8d1dea (diff) | |
download | FreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.zip FreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.tar.gz |
Add a few examples.
Obtained from: OpenBSD
Diffstat (limited to 'bin/rmdir')
-rw-r--r-- | bin/rmdir/rmdir.1 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/rmdir/rmdir.1 b/bin/rmdir/rmdir.1 index 688d144..ededd43 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 |