Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Im using Ubuntu.... I was downloading a file from last four hours and after its completion I have mistakenly executes the following command: mv /path/myHugeFile other-machine: I have executed ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2

    Trapped by mv command

    Hi

    Im using Ubuntu....
    I was downloading a file from last four hours and after its completion I have mistakenly executes the following command:

    mv /path/myHugeFile other-machine:

    I have executed mv instead scp. Now the file is lost. Not on both machine

    What can I do ?

    rizzz86
    Rizwan Ahmed

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    whatever directory you executed that from, there should be a file named other-machine

  3. #3
    Linux Newbie
    Join Date
    Dec 2006
    Posts
    119
    yes, just like coopstah13 said. also if the file is really big and you have ubuntu desktop install just check the disk space application and find for that file on your drive.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    If you ran mv exactly as you showed
    Code:
    mv /path/myHugeFile other-machine:
    then it is possible that you simply renamed it. Look in /path/ for a file named 'other-machine:'.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2
    Thanks for the reponse.

    I have found that file with machine-name in my /home/user folder.....
    But I haven't executed that command from my user folder :s

    Anyways I have found the file ... thnx alot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...