I have lost a file while attempting to move it. I accidentally put three periods after the file name when I meant to put two. The command I ran was 'mv file.txt ...'. Ive used the find command to look for it, but I cant seem to track it down. Anyone encountered this before that might know where the file went?

migrated from stackoverflow.com Mar 30 '13 at 20:27

This question came from our site for professional and enthusiast programmers.

  • 5
    now do mv ... file.txt – Rozuur Mar 30 '13 at 20:10
  • 2
    That command would rename it to "..." in whatever directory you were in. So if you cd into that directory and do mv ... ../file.txt you should be able to get it back. – Jim Lewis Mar 30 '13 at 20:10
  • ls -a shows all files including hidden files (files starting with a . – ctrl-alt-delor Aug 5 '14 at 17:56

Using the Graphical User Interface, do "view hidden files" on the folder you were in. Either that, or press Ctrl-h (which does the same thing).

Normally, I'd tell you to type ls -la from the terminal, but the syntax coloring of your terminal window may not be smart enough to show those three dots as a normal hidden file.

  • Why didn't you just test it? ls -la works fine, although ls -lA works even better. – Sparhawk Aug 6 '14 at 6:17
  • Because I couldn't, I had no idea what terminal emulator he was using. – Stephan Branczyk Aug 6 '14 at 6:38
  • I'm not sure I understand. The terminal emulator shouldn't affect syntax colouring? (Also, are you talking about the --color=auto option?) – Sparhawk Aug 6 '14 at 6:41

Your Answer

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