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 a file with the name like ?????????????????????? ???????????????????????? ??????????.png in my directory. It seems to me that file was created under windows with russian name. I pulled it with git and now I am unable to compile my program. And I am unable to delete it in debian.

rm: cannot remove `??????????????????????': No such file or directory

rm: cannot remove `????????????????????????': No such file or directory

rm: cannot remove `??????????.png': No such file or directory

I tried to use quotes around file name, but it doesn't work.

How should delete files with names like this?

share|improve this question

migrated from stackoverflow.com Nov 24 '12 at 17:31

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

1  
The question marks probably stand for unrecognized unicode characters--I would try switching to a terminal font with unicode support for Russian characters. –  isturdy Nov 24 '12 at 14:17
    
Thank you, Mike! It works! –  Anton Bondarenko Nov 24 '12 at 14:22

1 Answer 1

up vote 1 down vote accepted

Just use rm -i <wildcard>...

(py26_dfl)[mpenning@Bucksnort ~]$ rm -i *ng
rm: remove regular file `IMAG0004-1.png'? n
rm: remove regular file `??????????.png'? y
(py26_dfl)[mpenning@Bucksnort ~]$
share|improve this answer
    
Thank you, Mike! It works! –  Anton Bondarenko Nov 24 '12 at 14:25

Your Answer

 
discard

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