I was attempting to utilize the mv
command to move a file onto a remote server. I ended up executing the command...
mv sqlreport.php [email protected]
Unfortunately, this did not work. Worse, my file seems to have disappeared. A new file, [email protected]
, has appeared, but it is not a directory (In that I cannot cd
into it).
Any tips on where my file may have gone, and how to rescue it?
mv
is not capable of moving a file to a remote location. You will need something likecurl
orscp
.curl
orscp
were 1:1 replacements formv
using the syntax the OP used. They are, however, tools that can be used for what the OP wants.