summaryrefslogtreecommitdiffstats
path: root/bin/mv
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/mv
parent90b1ba3bc42c541bb65e1492274cdbdeca8d1dea (diff)
downloadFreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.zip
FreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.tar.gz
Add a few examples.
Obtained from: OpenBSD
Diffstat (limited to 'bin/mv')
-rw-r--r--bin/mv/mv.112
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/mv/mv.1 b/bin/mv/mv.1
index 5199f27..298dbf9 100644
--- a/bin/mv/mv.1
+++ b/bin/mv/mv.1
@@ -32,7 +32,7 @@
.\" @(#)mv.1 8.1 (Berkeley) 5/31/93
.\" $FreeBSD$
.\"
-.Dd August 28, 2012
+.Dd March 15, 2013
.Dt MV 1
.Os
.Sh NAME
@@ -155,6 +155,16 @@ rm -rf source_file
.Ed
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+Rename file
+.Pa foo
+to
+.Pa bar ,
+overwriting
+.Pa bar
+if it already exists:
+.Pp
+.Dl $ mv -f foo bar
.Sh COMPATIBILITY
The
.Fl h ,
OpenPOWER on IntegriCloud