Remove Corrupt File With Bad File Name Linux
You could try using -i
which will present you with a question
rm -i 1386141318.M854059P*
rm: remove regular file '1386141318.M854059PΈ3Ώ62.email.vantagetitle.com,S?11304,W11473:2,Sc'?
and answer y
You may be able to delete the file using it's inode number. use ls -li
to get the inode number of the file. Once you have it, use find to delete it
find . -inum <inode number> -delete
The easiest way to tackle these is to use a double-dash (--) following the rm.
# rm -- 1386141318.M854059P*
The double-dash tells the command rm that you are done passing command switches and what follows is what its supposed to operate on.
-Scott
If present, you could browse the directory with Midnight Commander.
Enter mc
, use the arrow keys to select the file and then hit F8
to delete it