19

I came across this weird situation when I accidentally moved one of my directory to an unknown place I am unable to find.

What I did was executed this command -

/opt/lampp/htdocs/cake$ mv cakephp/ .../

It did executed without any error, and now I am not able to locate my directory.

I googled this issue but I am not getting any help.

Any help will be appreciated.

Malte Skoruppa
  • 12,856
  • 5
  • 56
  • 65
Hirdesh Vishwdewa
  • 411
  • 1
  • 10
  • 21
  • 1
    Another case of Linux assuming that you know what you're doing. And since it starts with a dot, it's hidden by default. – Joe Jul 17 '16 at 07:30

1 Answers1

25

You renamed the directory cakephp in /opt/lampp/htdocs/cake to .... Your command was perfectly valid, therefore it did not produce an error.

You should be able to find the directory at /opt/lampp/htdocs/cake/.... Note that files/folder starting with a dot are hidden (hence you need to use, e.g., ls -a /opt/lampp/htdocs/cake to see it).

Malte Skoruppa
  • 12,856
  • 5
  • 56
  • 65