![](/images/backgrounds/286175/hp-hp-ux-operating-systems-command-reference-guide-156072581x1.png)
mv(1) | mv(1) |
NAME
mv - move or rename ®les and directories
SYNOPSIS
mv
mv
mv
DESCRIPTION
The mv command moves:
∙One ®le (®le1) to a new or existing ®le
∙One or more ®les (®le1, [®le2, ...]) to an existing directory
∙One or more directory subtrees (directory1, [directory2, ...]) to a new or existing directory (dest- directory).
Moving ®le1 to
If the access permissions of the destination
If ®le1 is a ®le and
Options
mv recognizes the following options:
Perform mv commands without prompting for permission. This option is assumed | ||
| when the standard input is not a terminal. | |
Causes mv to write a prompt to standard output before moving a ®le that would | ||
| overwrite an existing ®le. If the response from the standard input is af®rmative, the | |
| ®le is moved if permissions allow the move. | |
Speci®es the handling of any extent attributes of the ®les(s) to be moved. extarg can | ||
| be one of the following values: | |
| warn | Issue a warning message if extent attributes cannot be preserved, but |
|
| move the ®le anyway. |
| ignore | Do not preserve extent attributes. |
| force | Do not move the ®le if the extent attributes cannot be preserved. |
|
| If multiple source ®les are speci®ed with a single target directory, mv will |
move the ®les that either do not have extent attributes or that have extent attributes that can be preserved. mv will not move the ®les if it cannot preserve their extent attributes.
Extent attributes cannot be preserved if the ®les are being moved to a ®le system that does not support extent attributes or if that ®le system has a different block size than the original. If
Access Control Lists (ACLs)
If optional ACL entries are associated with
− 1 − | Section 1−553 |
m