Accidentally, I typed

mv C:\User\username\Download

in the visual studio code console. To my surprise the folder completely disappeared. That's quite a thing! Under Linux nothing would happen. Where did the folder go? Is it completely deleted from the filesystem? Is there a way to prevent this weird behavior?

  • 3
    It probably moved the Download folder to whatever location you were currently working in. – Mokubai Feb 9 '18 at 17:07
  • Just found that ;-) – Sören Feb 9 '18 at 17:07
  • 1
    Just out of curiosity, how did you accidentally enter a command that moved your entire Download folder? What were you trying to do? – Run5k Feb 9 '18 at 17:11
  • I wanted to move a file from inside the folder. I am not used to the terminal under W10 it does weird things... Funny thing, I can delete this folder under C:\User\username\ and create it at a different place, but I cannot delete the copy that I created using the terminal, due to permissions. That is so weird. – Sören Feb 9 '18 at 17:18

mv C:\Your\Path\Here without a destination directory will move the directory in question into the current working directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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