Files
oldlinux-files/Minix/2.0.0/wwwman/man1/mv.1.html
2024-02-19 00:21:39 -05:00

74 lines
1.7 KiB
HTML

<HTML>
<HEAD>
<TITLE>mv(1)</TITLE>
</HEAD>
<BODY>
<H1>mv(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
mv - move or rename a file
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>mv</STRONG> <STRONG>[-ifsmvx</STRONG>] <EM>file1</EM> <EM>file2</EM>
<STRONG>mv</STRONG> <STRONG>[-ifsvx</STRONG>] <EM>file</EM> ... <EM>directory</EM>
</PRE>
<H2>OPTIONS</H2><PRE>
<STRONG>-i</STRONG> Prompt before removing existing files
<STRONG>-f</STRONG> Do not prompt before removing existing files
<STRONG>-s</STRONG> Do not clear any mode bits if owner can't be set
<STRONG>-m</STRONG> Merge directory trees
<STRONG>-v</STRONG> Tell what mv is doing
<STRONG>-x</STRONG> Do not cross device boundaries
</PRE>
<H2>EXAMPLES</H2><PRE>
<STRONG>mv</STRONG> <STRONG>oldname</STRONG> <STRONG>newname</STRONG> # Move <EM>oldname</EM> to <EM>newname</EM>
<STRONG>mv</STRONG> <STRONG>file1</STRONG> <STRONG>file2</STRONG> <STRONG>/user/ast</STRONG>
# Move two files to /<EM>user</EM>/<EM>ast</EM>
</PRE>
<H2>DESCRIPTION</H2><PRE>
<EM>Mv</EM> moves one or more files from one place in the file system to another.
If the old path and new path are on the same device, it is done by
renaming otherwise by copying. If you're not superuser, the copy will
destroy the file's owner, group and setuid/setgid bits. <EM>mv</EM> will prompt
before removing non-writable files if <STRONG>stdin</STRONG> is a terminal or the <STRONG>-i</STRONG> flag
was specified.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man1/cp.1.html">cp(1)</A></STRONG>, <STRONG><A HREF="../man2/rename.2.html">rename(2)</A></STRONG>.
</PRE>
</BODY>
</HTML>