file . . . target
The mv command moves
the specified files
must not have the same name.
(Care must be taken when using
is not a directory, only one file
may be specified before it; if it is
a directory, more than one file
may be specified.
does not exist,
mv creates a file named target.
exists and is not a directory, its contents are overwritten.
is a directory
the file(s) are moved to that directory.
determines that the mode of
forbids writing, it will
print the mode (see
ask for a response,
and read the standard input for one line.
If the line begins with
occurs, if permissible; otherwise, the command exits.
(The form of an affirmative is locale dependent,
``y'' in the C
locale. See LANG on
When mv succeeds, the resulting file(s) will have the same
uid and gid as the source file(s).
When the parent directory of a file is
writable and has the sticky bit set, one or more of
the following conditions must be true:
The following options are recognized:
the user must own the file
the user must own the directory
the file must be writable by the user
the user must be a privileged user
is a directory,
must be a directory in the same physical file system.
do not have to share the same parent directory.
mv will prompt for confirmation whenever the move
would overwrite an existing target.
A ``y'' answer means that the move should proceed.
Any other answer prevents
from overwriting the target.
mv will move the file(s) without
prompting even if it is writing
over an existing target.
This option overrides the
Note that this is the default if the standard input is not a terminal.
Specify how to handle a vxfs file that has extent
Extent attributes include reserved space, a fixed
extent size, and extent alignment.
It may not be possible to preserve the information
if the destination file system does not support extent
attributes, has a different block size than the source
file system, or lacks free extents appropriate to satisfy
the extent attribute requirements.
Valid values for extent_opt are:
Issue a warning message
if extent attribute information cannot be kept
Fail the move
if extent attribute information cannot be kept.
Ignore extent attribute information entirely.
is a file and
is a link to another file with links, the other
links remain and
becomes a new file.
language-specific message file (see LANG on
are on different file systems,
copies the file and deletes the original;
any links to other files are lost.
permits the user to mark explicitly the end of any command
line options, allowing
to recognize filename arguments that begin with a -.
As an aid to BSD migration, mv accepts - as
a synonym for --.
This migration aid may disappear in a future release.
If a -- and a -
both appear on the same command line, the second will be interpreted as
This command has been updated to handle files greater than 2GB.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005