ren - Move or rename file(s) on the remote server in SFTP

Using "ren" command you can move or rename a file in a remote server.

psftp> ren oldfile newfile

The ren command works exactly the same way as mv.

psftp> pwd
current remote working directory is /home/user1
psftp> ren

In the above code, the is renamed/moved as will be no more after executing the above code.