This is an old revision of the document!
mv
Moves or renames one or more remote files.
mv <file> [ <file2> ... ] [ <directory>/ ][ <newname> ]
Advertisement
Destination directory
or newname
or both must be specified. Destination directory must end with slash. Operation mask can be used instead of new name. Filename can be replaced with wildcard to select multiple files.
Alias: rename
XML log element: mv
Examples
mv index.html public_html/ mv index.html about.* mv index.html public_html/about.* mv public_html/index.html public_html/about.html /home/martin/*.bak mv *.html /home/backup/*.bak