5
[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.

2 Answers 2

12

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/

1
  • Yes the file was in /home/chankey/ Commented Aug 23, 2011 at 13:15
6

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/...

2
  • 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. Commented Aug 23, 2011 at 12:32
  • You can use history -n 100 to see more history lines... Commented Aug 23, 2011 at 12:40

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.