rename
Use rename to change the name of a file or directory on the SFTP server.
Syntax
rename old-name new-name
Views
SFTP client view
Predefined user roles
network-admin
mdc-admin
Parameters
oldname: Specifies the name of an existing file or directory.
newname: Specifies a new name for the existing file or directory.
Examples
# Change the name of a file on the SFTP server from temp1.c to temp2.c.
sftp> dir aa.pub temp1.c sftp> rename temp1.c temp2.c sftp> dir aa.pub temp2.c