Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
[root@localhost /home/chankey/Desktop/Downloads]# ls
myproject.plx
[root@localhost /home/chankey/Desktop/Downloads]# mv myproject.plx ..

I had the file in Downloads folder. I used mv command as shown above and now I can't see the file. It is neither in the Desktop folder nor in the Downloads.

share|improve this question
add comment

2 Answers

up vote 12 down vote accepted

Check if /home/chankey/Desktop/Download for some reason would be a symlink to for example /home/chankey/Download ... If so, it may be that that the file is in /home/chankey/

share|improve this answer
1  
+1 good idea, definitively a possibility. –  Caleb Aug 23 '11 at 12:41
    
Yes the file was in /home/chankey/ –  Chankey Pathak Aug 23 '11 at 13:15
add comment

The move command you show using .. as the target will move your file UP one directory to /home/chankey/Desktop/myproject.plx. The .. folder syntax is always the parent folder.

If it's not there, you did something different than you are showing. Perhaps you typed in three dots and it actually got named that: /home/chankey/Desktop/Downloads/...

share|improve this answer
    
Caleb is correct. If your history is enabled, you can confirm the command you issued by checking it. Simply issue the history command at the prompt. –  Sean C. Aug 23 '11 at 12:32
    
You can use history -n 100 to see more history lines... –  Caleb Aug 23 '11 at 12:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.