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?
Answer
Just use rm -i
...
(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 ~]$
Comments
Post a Comment