Syntax: rename <server filename> <new filename>
FTP Command Index SFTP Command Index
The RENAME command changes the name of a server file to the new name specified. On some servers, you can use RENAME to specify both a new name and a new location for the file. In this case, the file is moved to the new location and given the new name specified.
In the current folder on the server, this command renames the file "Map of Canada" to "Canada":
RENAME "Map of Canada" Canada
From the "Maps" folder on the server , this command renames a file in the folder "Europe", changing the name from "England" to "Great Britain".
RENAME /Maps/Europe/England "/Maps/Europe/Great Britain"