I have a file on my external hard disk named ._Icon^M.I ended up with this after using my hard disk on old Mac platform machine. I want to delete this file but unable to.
For the command 'ls -al' it shows as
dr-xr-xr-x 1 root root 8192 Mar 6 19:53 ..
-????????? ? ? ? ? ? ._Icon?
Seeing this I tried to add ownership (using chown) and modify the permissions(using chmod) but the commands are not recognising ._Icon as file or a directory.
I tried deleting the file using the command -
find . -name '._*' -exec rm '{}' ';'
rm is not able to remove as it is not interpreting it as a file or a directory The console after running the above command is
rm: cannot remove './._Icon\r': No such file or directory
How do I delete such a file?
._Icom?but._Icom\rand it is a filesystem problem, not a regular file as you can see from thels -loutput. You won't be able to replicate this unless you use your disk on a mac.