Moving Files From Command Line

Advertisement

rin-tin-tin
Guest

Moving Files From Command Line

From one folder off my remote server I highlighted multiple log files, right clicked one of them, scrolled down to custom commands, then to move. I proceeded to type in the directory of my local hardrive and then ok. To my horror the log files disapeared and a file was created on my remote server with the local hardrive information. This new file is small and I can't seem to open it. Also no files were transferred to my local hard drive.

These log files are extremely important.
If someone knows where these files ended up and what I need to do to recover them, please let me know asap.

-Nick

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,551
Location:
Prague, Czechia

Re: Moving Files From Command Line

"Custom commands" is list of user defined commands that are executed on the server. You cannot use it to transfer files.

It is hard to tell what has happened with your file. Pre-defined "Move to" command does:
mv file target
Where file is selected file and target is the path you've entered in the box.

Reply with quote

rin-tin-tin
Guest

Re: Moving Files From Command Line

This is what I typed in for location:

I:\Accesslog

Any idea where this could have ended up?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,551
Location:
Prague, Czechia

Re: Moving Files From Command Line

If you have executed
mv -f filename "I:\Accesslog"
for every selected file, then every file was renamed to "I:\Accesslog", one by one. Making each file overwrite the previous.

So I fear that you have lost all the files with exception of the last one. I'm sorry :-(

Reply with quote

Advertisement

You can post new topics in this forum