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 myuser@mywebsite.org
Unfortunately, this did not work. Worse, my file seems to have disappeared. A new file, myuser@mywebsite.org
, 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
. – HalosGhost Jun 24 '14 at 05:17mv
withscp
you will end up with the same result. You will need toscp
touser@host.org:
at least. – Bernhard Jun 24 '14 at 06:00curl
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. – HalosGhost Jun 24 '14 at 06:01curl
andscp
certainly have a different syntax thanmv
. – HalosGhost Jun 24 '14 at 06:41mv
command is used to rename files (as well as move them). – gen_Eric Jun 24 '14 at 15:01