.\" Copyright (c) 1989, 1990 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\" %sccs.include.redist.roff%
.\" @(#)mv.1 6.9 (Berkeley) %G%
.Ar source ... source directory
utility renames the file named by the
operand to the destination path named by the
This form is assumed when the last operand does not name an already
moves each file named by a
operand to a destination file in the existing directory named by the
The destination path for each operand is the pathname produced by the
concatenation of the last operand, a slash, and the final pathname
component of the named file.
The following options are available:
Do not prompt for confirmation before overwriting the destination
to write a prompt to standard error before moving a file that would
overwrite an existing file.
If the response from the standard input begins with the character ``y'',
It is an error for either the
operand or the destination path to specify a directory unless both do.
If the destination path does not have a mode which permits writing,
prompts the user for confirmation as specified for the
call does not work across file systems,
The effect is equivalent to:
.Bd -literal -offset indent
rm -f destination_path && \e
\tcp -pr source_file destination && \e
utility exits 0 on success, and >0 if an error occurs.
utility is expected to be