145 lines
4.2 KiB
HTML
145 lines
4.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MV</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MV</H1>
|
|
Section: User Commands (1)<BR>Updated: September 2019<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
mv - move (rename) files
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mv</B>
|
|
|
|
[<I>,OPTION/</I>]... [<I>,-T/</I>] <I>,SOURCE DEST/</I>
|
|
<BR>
|
|
|
|
<B>mv</B>
|
|
|
|
[<I>,OPTION/</I>]... <I>,SOURCE/</I>... <I>,DIRECTORY/</I>
|
|
<BR>
|
|
|
|
<B>mv</B>
|
|
|
|
[<I>,OPTION/</I>]... <I>,-t DIRECTORY SOURCE/</I>...
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
<P>
|
|
|
|
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
|
|
<P>
|
|
|
|
Mandatory arguments to long options are mandatory for short options too.
|
|
<DL COMPACT>
|
|
<DT id="1"><B>--backup</B>[=<I>,CONTROL/</I>]<DD>
|
|
make a backup of each existing destination file
|
|
<DT id="2"><B>-b</B><DD>
|
|
like <B>--backup</B> but does not accept an argument
|
|
<DT id="3"><B>-f</B>, <B>--force</B><DD>
|
|
do not prompt before overwriting
|
|
<DT id="4"><B>-i</B>, <B>--interactive</B><DD>
|
|
prompt before overwrite
|
|
<DT id="5"><B>-n</B>, <B>--no-clobber</B><DD>
|
|
do not overwrite an existing file
|
|
</DL>
|
|
<P>
|
|
|
|
If you specify more than one of <B>-i</B>, <B>-f</B>, <B>-n</B>, only the final one takes effect.
|
|
<DL COMPACT>
|
|
<DT id="6"><B>--strip-trailing-slashes</B><DD>
|
|
remove any trailing slashes from each SOURCE
|
|
argument
|
|
<DT id="7"><B>-S</B>, <B>--suffix</B>=<I>,SUFFIX/</I><DD>
|
|
override the usual backup suffix
|
|
<DT id="8"><B>-t</B>, <B>--target-directory</B>=<I>,DIRECTORY/</I><DD>
|
|
move all SOURCE arguments into DIRECTORY
|
|
<DT id="9"><B>-T</B>, <B>--no-target-directory</B><DD>
|
|
treat DEST as a normal file
|
|
<DT id="10"><B>-u</B>, <B>--update</B><DD>
|
|
move only when the SOURCE file is newer
|
|
than the destination file or when the
|
|
destination file is missing
|
|
<DT id="11"><B>-v</B>, <B>--verbose</B><DD>
|
|
explain what is being done
|
|
<DT id="12"><B>-Z</B>, <B>--context</B><DD>
|
|
set SELinux security context of destination
|
|
file to default type
|
|
<DT id="13"><B>--help</B><DD>
|
|
display this help and exit
|
|
<DT id="14"><B>--version</B><DD>
|
|
output version information and exit
|
|
</DL>
|
|
<P>
|
|
|
|
The backup suffix is '~', unless set with <B>--suffix</B> or SIMPLE_BACKUP_SUFFIX.
|
|
The version control method may be selected via the <B>--backup</B> option or through
|
|
the VERSION_CONTROL environment variable. Here are the values:
|
|
<DL COMPACT>
|
|
<DT id="15">none, off<DD>
|
|
never make backups (even if <B>--backup</B> is given)
|
|
<DT id="16">numbered, t<DD>
|
|
make numbered backups
|
|
<DT id="17">existing, nil<DD>
|
|
numbered if numbered backups exist, simple otherwise
|
|
<DT id="18">simple, never<DD>
|
|
always make simple backups
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Written by Mike Parker, David MacKenzie, and Jim Meyering.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>REPORTING BUGS</H2>
|
|
|
|
GNU coreutils online help: <<A HREF="https://www.gnu.org/software/coreutils/">https://www.gnu.org/software/coreutils/</A>>
|
|
<BR>
|
|
|
|
Report mv translation bugs to <<A HREF="https://translationproject.org/team/">https://translationproject.org/team/</A>>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright © 2018 Free Software Foundation, Inc.
|
|
License GPLv3+: GNU GPL version 3 or later <<A HREF="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</A>>.
|
|
<BR>
|
|
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?2+rename">rename</A>(2)
|
|
<P>
|
|
|
|
<BR>
|
|
|
|
Full documentation at: <<A HREF="https://www.gnu.org/software/coreutils/mv">https://www.gnu.org/software/coreutils/mv</A>>
|
|
<BR>
|
|
|
|
or available locally via: info '(coreutils) mv invocation'
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="19"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="20"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="21"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="22"><A HREF="#lbAE">AUTHOR</A><DD>
|
|
<DT id="23"><A HREF="#lbAF">REPORTING BUGS</A><DD>
|
|
<DT id="24"><A HREF="#lbAG">COPYRIGHT</A><DD>
|
|
<DT id="25"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:19 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|