How to move files using FTP commands

Kermia picture Kermia · Feb 27, 2012 · Viewed 144.6k times · Source

Path of source file is : /public_html/upload/64/SomeMusic.mp3

And I want to move it to this path : /public_html/archive/2011/05/64/SomeMusic.mp3

How can i do this using FTP commands?

Answer

Johan picture Johan · Feb 27, 2012

In FTP client:

rename /public_html/upload/64/SomeMusic.mp3 /public_html/archive/2011/05/64/SomeMusic.mp3

With FTP commands:

RNFR /public_html/upload/64/SomeMusic.mp3
RNTO /public_html/archive/2011/05/64/SomeMusic.mp3

source: http://www.nsftools.com/tips/RawFTP.htm