mv — Move Files

Synopsis

/usr/bin/mv [-fi] source target-file 
/usr/bin/mv [-fi] source... target-dir 
/usr/xpg4/bin/mv [-fi] source target-file 
/usr/xpg4/bin/mv [-fi] source... target-dir
					

Description

Use the mv command to move files from one place to another or to change the name of a file.

In the first synopsis form, the mv command moves the file named by the source operand to the destination specified by target-file . source and target-file cannot have the same name. If target-file does not exist, mv creates a file named target-file . If target-file exists, its contents are overwritten. This first synopsis form is assumed when the final operand does not name an existing directory.

In the second synopsis form, mv moves each file named by ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.