6

I moved

mv  ~/...path.../myFile.py ~/a/b/c/typoedFolder

I understand now that I should always have a trailing / to prevent these issues, but given that it happened - is there any hope of recovering myFile.py?

16

Sure just reverse it:

mv ~/a/b/c/typoedFolder ~/a/b/c/myFile.py

The files has only changed its name. So you're fine in this case to simply rename it back.

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.