Contact SalesSitemapCustomer Login

Linux Command Reference: mv

mv moves or renames a file or directory.


Contents

[edit]

Using mv

Usage: mv <options> <source_path> <destination_path>

<source_path> - Name of the existing file or directory

<destination_path> - Destination directory and/or file name


[edit]

mv Options


[edit]

Rename a File or Directory

Enter mv <old_name> <new_name> where <old_name> is the present name of the file or directory and <new_name> is the file or directory's new name.


[edit]

Move a File or Directory to a New Parent Directory

Enter mv <source_name> <parent_name> where <source_name> is the name of the file or directory and <parent_name> is the parent directory's new name.


[edit]

Help and Manual

Enter mv --help to see basic command line options and syntax or enter man mv to read the manual.


[edit]

Related Commands

Retrieved from "http://wiki.vpslink.com/Linux_Command_Reference:_mv"
Recent Changes | RSS RSS Feed