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?
mvis not capable of moving a file to a remote location. You will need something likecurlorscp. – HalosGhost Jun 24 '14 at 05:17mvwithscpyou will end up with the same result. You will need toscptouser@host.org:at least. – Bernhard Jun 24 '14 at 06:00curlorscpwere 1:1 replacements formvusing the syntax the OP used. They are, however, tools that can be used for what the OP wants. – HalosGhost Jun 24 '14 at 06:01curlandscpcertainly have a different syntax thanmv. – HalosGhost Jun 24 '14 at 06:41mvcommand is used to rename files (as well as move them). – gen_Eric Jun 24 '14 at 15:01