Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

4  
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 . –  richard Aug 5 at 17:56

1 Answer 1

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.

share|improve this answer
    
Why didn't you just test it? ls -la works fine, although ls -lA works even better. –  Sparhawk Aug 6 at 6:17
    
Because I couldn't, I had no idea what terminal emulator he was using. –  Stephan Branczyk Aug 6 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 at 6:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.